 |
Game
Game is a static global object representing the application you are currently running.
An adjustable target FPS determines the frequently at which the "on_update" event is to be raised per second.
In certain cases, the "on_update" handler may take longer than one frame interval.
Constant Methods
- get_fps ( )
Returns the current frame rate per second
- set_target_fps ( number fps )
Sets the desired frequency at which the "on_update" event is raised per second
Non-Constant Methods
- start ( )
Begins the internal game loop
- pause ( )
Pauses the internal game loop
- quit ( )
Exits the internal game loop
Events
- on_update ( number delta )
Event raised Time elapsed since the last "on_update" event in milliseconds
|