Lua API
0.4.0
Game Engine
|
Functions | |
centerCursor () | |
Sets the cursor to the center of the screen. More... | |
hideCursor () | |
Hides the cursor. More... | |
showCursor () | |
Shows the cursor. More... | |
getWindowScale () | |
Retrieves the current window resolution. More... | |
getSystemTick () | |
Returns the number of milliseconds that passed since the application started. More... | |
quit () | |
Quits the game. More... | |
dofile (file) | |
Includes a file into script for execution. More... | |
centerCursor | ( | ) |
Sets the cursor to the center of the screen.
dofile | ( | file | ) |
Includes a file into script for execution.
file | The file to execute. |
Will look for scripts in "$PROJECT_DIR/scripts". The example would load "$PROJECT_DIR/scripts/filename.lua".
Example:
getSystemTick | ( | ) |
Returns the number of milliseconds that passed since the application started.
getWindowScale | ( | ) |
Retrieves the current window resolution.
Example:
hideCursor | ( | ) |
Hides the cursor.
quit | ( | ) |
Quits the game.
The player will terminate, the editor will return to an editing environment.
showCursor | ( | ) |
Shows the cursor.