Namespace: menuState

menuState

[MAIN MENU STATE] Screen where the user can select a game.
Source:

Methods

(static) clearTitle()

Remove the name of the game from screen
Source:

(static) create()

Main code
Source:

(static) load(icon)

Saves info from selected game and goes to next state
Parameters:
Name Type Description
icon object clicked icon
Source:

(static) onInputDown(mouseEvent)

Called by mouse click event
Parameters:
Name Type Description
mouseEvent object contains the mouse click coordinates
Source:

(static) onInputOver(mouseEvent)

Called by mouse move event
Parameters:
Name Type Description
mouseEvent object contains the mouse move coordinates
Source:

(static) preload()

Preloads media for current state
Source:

(static) showInfoBox()

Displays game menu information boxes.
Source:

(static) showTitle(icon)

Display the name of the game on screen
Parameters:
Name Type Description
icon object icon for the game
Source: