Namespace: loop

game.loop

[Not directly used] Handles 'game loop'.
After the media queue is filled in create(), the 'game loop' starts. It calls update() iteratively, re-rendering the screen every time.
The 'game loop' is stoped by leaving the current state.
Source:

Methods

(static) clear()

[Not directly used] Resets game loop values.
Source:

(static) run()

[Not directly used] Executes game loop. This code will run on each iteration of the game loop.
Source:

(static) start(state)

[Not directly used] Starts game loop.
Parameters:
Name Type Description
state object current state
Source:

(static) stop()

[Not directly used] Stops game loop.
Source: