Game Scripts Entry Points
Back
You can define these functions in your "game" Lua scripts
and they will be called by the engine.
There is a special game Lua script called "top.lua".
The entry points of that script are different from all other
game Lua scripts.
All these functions are called in the Game Lua state.
"Game" Lua scripts are Lua scripts found in the Game
directory (and its subdirectories) of your package.
Game/top.lua Functions
void top.__new_game();
void top.__load_game();
bool top___reboot_game();
void top.__update();
void top.__update_passive();
void top.__update_discrete_pre();
void top.__update_discrete_post();
string top.__game_input(string cmd_str);
string top.__game_input_get_all_cmds();
string top.__game_input_get_help_str(string cmd_name);
void top.__killed_player();
void top.__respawn_player(string param);
Vector top.__get_level_color(int level, string side);
Other "Game" Script Functions
void __load_game_early();
void __load_game();
void __update();
void __update_passive();
void __update_discrete_pre();
void __update_discrete_post();
void __render_augmented(int level);