Drawing with a canvas goes here. Override this function in your game.
Marks the game as finished. It will end in the next game loop iteration.
Get keyboard API. Cannot be called before load().
Initialization go here. Override this function in your game. By default: do nothing.
Get mouse API. Cannot be called before load().
Callback function triggered when the mouse is moved.
Callback function triggered when a mouse button is pressed.
Callback function triggered when a mouse button is released.
Callback function triggered when a mouse wheel is turned.
Called whenever the window is resized. Override this function in your game.
Root of the scene.
Changes the clear color to fill the screen with.
Changes the title of the window.
Scene updates go here. Override this function in your game. By default: do nothing.
Height of the window. Can only be used inside a draw override.
Width of the window. Can only be used inside a draw override.
Inherit from this to make a game.