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...

Full description

Saved in:
Bibliographic Details
Main Authors: Christopher Cromer, Martin Araneda, Clemente Rubio-Manzano
Format: Article
Language:English
Published: MDPI AG 2024-12-01
Series:Applied Sciences
Subjects:
Online Access:https://www.mdpi.com/2076-3417/15/1/157
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1841549466174226432
author Christopher Cromer
Martin Araneda
Clemente Rubio-Manzano
author_facet Christopher Cromer
Martin Araneda
Clemente Rubio-Manzano
author_sort Christopher Cromer
collection DOAJ
description 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.
format Article
id doaj-art-d2d35430af8d49acac32ebabe5c4de95
institution Kabale University
issn 2076-3417
language English
publishDate 2024-12-01
publisher MDPI AG
record_format Article
series Applied Sciences
spelling doaj-art-d2d35430af8d49acac32ebabe5c4de952025-01-10T13:14:38ZengMDPI AGApplied Sciences2076-34172024-12-0115115710.3390/app15010157Design and Implementation of a Compiled Declarative Language for Game AI ControlChristopher Cromer0Martin Araneda1Clemente Rubio-Manzano2Department of Information Systems, University of the Bío-Bío, Concepcion 4030000, ChileDepartment of Information Systems, University of the Bío-Bío, Concepcion 4030000, ChileDepartment of Information Systems, University of the Bío-Bío, Concepcion 4030000, ChileVideo 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.https://www.mdpi.com/2076-3417/15/1/157game artificial intelligencescripting programming languagecomputer games
spellingShingle Christopher Cromer
Martin Araneda
Clemente Rubio-Manzano
Design and Implementation of a Compiled Declarative Language for Game AI Control
Applied Sciences
game artificial intelligence
scripting programming language
computer games
title Design and Implementation of a Compiled Declarative Language for Game AI Control
title_full Design and Implementation of a Compiled Declarative Language for Game AI Control
title_fullStr Design and Implementation of a Compiled Declarative Language for Game AI Control
title_full_unstemmed Design and Implementation of a Compiled Declarative Language for Game AI Control
title_short Design and Implementation of a Compiled Declarative Language for Game AI Control
title_sort design and implementation of a compiled declarative language for game ai control
topic game artificial intelligence
scripting programming language
computer games
url https://www.mdpi.com/2076-3417/15/1/157
work_keys_str_mv AT christophercromer designandimplementationofacompileddeclarativelanguageforgameaicontrol
AT martinaraneda designandimplementationofacompileddeclarativelanguageforgameaicontrol
AT clementerubiomanzano designandimplementationofacompileddeclarativelanguageforgameaicontrol