Give your game dynamics
Using Skylines simple Lua functions you can control any aspect of your game and easily and quickly update then see your script running by pressing the Run the game Button inside the editor.
Skylines Lua wraps the c++ commands to bring you a powerful scripting interface.
Lua is a powerful, fast, lightweight, embeddable scripting language. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping. (Text from : https://www.lua.org/about.html)
Scripts are attached to Scene Entities using the Entity Editor.
Skyline is designed from the ground up to run as a State Machine to make you scripting easier to manage. Games States provide your game with easy to maintain sections. Each section of a game can have a state and only if that state is called will the respective code run. E.g. when the game is running all of its control comes from the state “Game Main”, but if the game was to be put in pause mode all these controls would stop as only control coming from the “Pause State” would run. Actions and Lua have access to these states.
The Skyline Engine is fully state machine driven, separate states for game, pause, options.
There are several Lua libraries that you will use to access all the commands that skyline offers.
New Commands and Lua libraries are being added all the time.
See here for all the Lua Commands: https://api.aurasoft-skyline.co.uk/annotated.html)