Dev Blog: Scripting and the In-Game Console

One of the first major components required by many modern games is a scripting engine, an implementation of a simpler programming language used by the game to do most of its less technical but copious logic, e.g. artifical intelligence, definitions of in-game objects, mission objectives.

Such a language has now been implemented in Epiar: the popular, blazingly fast, open source language Lua. Lua scripting will help us fill the gap found in our last release: a lack of missions, upgrade items, intelligent and varied NPCs (non-playable characters). It can also be used to let players expand the game in very broad ways, allowing everything from new upgrade items and missions to entirely new universes and game objectives.

To aid in Epiar's development and to provide a testing ground for players modifying and expanding the game, we've built in a console which can be brought up while playing; a simple text interface similar to your computer's terminal where you can type commands and immediately see the results on the game.

For the C++ developers interested, this can be found in our current Subversion repository at Active it by pressing the back-tick key (`).