new Game()
Interface that defines high level methods for a game.
- Source:
Methods
-
animate()
-
Calls the others methods, and "prepare" the next frame.
- Source:
-
render()
-
Renders what needed be, to the right places.
- Source:
-
setup()
-
Sets up the game. It should be executed before any other method.
- Source:
-
start()
-
Starts the animation process.
- Source:
-
stop()
-
Stop the animation process.
- Source:
-
update(dt)
-
Updates the game, between frames.
Parameters:
Name Type Description dt
number The miliseconds elapsed since the last animation call. - Source: