Callbacks
List of callbacks
load( ) | Called when the game should load. |
update( dt ) | Called each timestep when the game should be updated. |
draw( ) | Called each timestep right after update. |
mousepressed( x, y, button ) | Called when the mouse is pressed. |
mousereleased( x, y, button ) | Called when the mouse is released. |
keypressed( key ) | Called when a key is pressed. |
keyreleased( key ) | Called when a key is released. |