zerk.game Class
Game
Base class for games. All games should inherit from here.
Item Index
Properties
Methods
_getConfigDefaults
()
Object
protected
Returns the default game configuration
This method should be extended by child classes to setup default game configuration.
Returns:
Object:
Default configuration
_onLoadGameConfiguration
(
protected
-
gameConfig
-
localConfig
Fires when the game configuration is loaded
Parameters:
-
gameConfig
ObjectGame configuration
-
localConfig
ObjectBootstrap configuration
init
(
async
-
config
Class constructor
Parameters:
-
config
ObjectGame configuration
run
()
Run the game
This method should be extended by child classes to boot the game.