Methods
(static) clearTitle()
Remove the name of the game from screen
(static) create()
Main code
(static) load(icon)
Saves info from selected game and goes to next state
Parameters:
Name | Type | Description |
---|---|---|
icon |
object | clicked icon |
(static) onInputDown(mouseEvent)
Called by mouse click event
Parameters:
Name | Type | Description |
---|---|---|
mouseEvent |
object | contains the mouse click coordinates |
(static) onInputOver(mouseEvent)
Called by mouse move event
Parameters:
Name | Type | Description |
---|---|---|
mouseEvent |
object | contains the mouse move coordinates |
(static) preload()
Preloads media for current state
(static) showInfoBox()
Displays game menu information boxes.
(static) showTitle(icon)
Display the name of the game on screen
Parameters:
Name | Type | Description |
---|---|---|
icon |
object | icon for the game |