Design and Implementation of a Compiled Declarative Language for Game AI Control

Video games have become one of the most popular forms of entertainment around the world. Currently, agents (bots or non-player characters) are predominantly programmed using procedural and deterministic imperative techniques, which pose significant drawbacks in terms of cost and time efficiency. An interesting and alternative line of work is to develop declarative scripting languages which align the programming task closer to human logic. This allows programmers to intuitively implement agents’ behaviors using straightforward rules. In this regard, most of these languages are interpreted, which may impact performance. Hence, this article presents the design and implementation of a new declarative and compiled scripting language called Obelysk for controlling agents. To test and evaluate the language, a video game was created using the Godot game engine, which allowed us to demonstrate the correct functionality of our scripting language to program the AIs participating in the video game. Finally, an analytics platform was also developed to evaluate the correct behavior of the programmed agents.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2024-12-27
DOI
https://doi.org/10.3390/app15010157
Primary Topic
AI-based Problem Solving and Planning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Design and Implementation of a Compiled Declarative Language for Game AI Control

Clemente Rubio-Manzano, Martin Araneda, Christopher Cromer
Applied Sciences
AI-based Problem Solving and Planning
article

Design and Implementation of a Compiled Declarative Language for Game AI Control

Clemente Rubio-Manzano, Martin Araneda, Christopher Cromer
article en

Abstract

Video games have become one of the most popular forms of entertainment around the world. Currently, agents (bots or non-player characters) are predominantly programmed using procedural and deterministic imperative techniques, which pose significant drawbacks in terms of cost and time efficiency. An interesting and alternative line of work is to develop declarative scripting languages which align the programming task closer to human logic. This allows programmers to intuitively implement agents’ behaviors using straightforward rules. In this regard, most of these languages are interpreted, which may impact performance. Hence, this article presents the design and implementation of a new declarative and compiled scripting language called Obelysk for controlling agents. To test and evaluate the language, a video game was created using the Godot game engine, which allowed us to demonstrate the correct functionality of our scripting language to program the AIs participating in the video game. Finally, an analytics platform was also developed to evaluate the correct behavior of the programmed agents.

Applied SciencesVol. 15(1)
University of Bío-Bío (CL)
Openalex Percentile: Top 78%
AI-based Problem Solving and Planning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.