[NAME STATE] Screen that asks for the user's name.
- Source:
Methods
(static) checkEmptyName() → {boolean}
Checks if player entered name in text box
- Source:
Returns:
false is textBox is emptys
- Type
- boolean
(static) create()
Main code
- 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) saveName()
Saves player name and calls next state
- Source: