You can use scripting languages such as lua for many things. For example, you can define the behavior of players, AI, common variables, and much of the logic in scripts. You can easily build a console into your game and edit scripts and pass commands via that console on runtime, rather than reloading the game. I personally use Lua to do event-handling (eg "if player is in pos XYZ, then do this and that and fire event T from nextEvent.lua").
I use the built in text file format included in the gdx-ai module to define the behaviors of the nations in my game, and I have created my own localisation format so as to support multiple languages and easily modify item descriptions.
I use XML to handle my GUI. In short you can do a great many things by scripting as well as using a data-oriented format.
Source: https://stackoverflow.com/questions/27307185/scripting-with-lua-in-libgdx
I use the built in text file format included in the gdx-ai module to define the behaviors of the nations in my game, and I have created my own localisation format so as to support multiple languages and easily modify item descriptions.
I use XML to handle my GUI. In short you can do a great many things by scripting as well as using a data-oriented format.
Source: https://stackoverflow.com/questions/27307185/scripting-with-lua-in-libgdx
Comments
Post a Comment