Lua API
0.4.0
Game Engine
|
Functions | |
loadLevel (filename) | |
Loads a specific level file. More... | |
getScene (name) | |
Retrieves the scene with the given name. More... | |
changeScene (scene) | |
Changes the current scene to the given scene. More... | |
getCurrentSceneId () | |
Retrieves the ID of the current scene. More... | |
getScenesNumber () | |
Returns the number of scenes in the current level. More... | |
changeScene | ( | scene | ) |
Changes the current scene to the given scene.
See also: getScene
scene | The new scene. |
getCurrentSceneId | ( | ) |
Retrieves the ID of the current scene.
getScene | ( | name | ) |
Retrieves the scene with the given name.
name | The name of the scene. |
getScenesNumber | ( | ) |
Returns the number of scenes in the current level.
loadLevel | ( | filename | ) |
Loads a specific level file.
filename | The level to load. Example: loadLevel("levels/menu.level") |