Namespace: customMenuState

customMenuState

[CUSTOM MENU STATE] Screen where the user can customise the selected game - game mode, math operation, level of difficulty.
Source:

Methods

(static) create()

Main code
Source:

(static) getOffset(width, numberOfIcons) → {number}

Calculate spacing for icons on the menu screen
Parameters:
Name Type Description
width number width of the available part of the screen
numberOfIcons number number or icons to be put on the screen
Source:
Returns:
correct spacing between icons
Type
number

(static) load(icon)

Saves information selected by the player
Parameters:
Name Type Description
icon object selected 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: