The main game logic script, using the fortunes.js and nutrition.js
modules
- Source:
Members
(inner) click :boolean
A flag used to interrupt the fortune message typing
Type:
- boolean
- Source:
(inner) game :gameObject
The main game instance
Type:
- Source:
(inner) level :number
The current game level
Type:
- number
- Source:
(inner, constant) nutritionDaily :Object
Defines the recommended daily intake for the different nutrition
properties
Type:
- Object
- Source:
(inner, constant) nutritionUnits :Object
Defines the units of measurement for the different nutrition
properties
Type:
- Object
- Source:
(inner, constant) pages :Array
The pages of the game UI
Type:
- Array
- Source:
Methods
(inner) typeOutMessage(message)
Types out the given message one character at a time with a delay in
between
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | The message to type out |
- Source: