Optional
initWhether or not to automatically initialize the interval-based managers.
Warning: If you set this to false
, you will need to manually call keyManager.init()
and eventManager.init()
to initialize them.
The storage to use for the game. If you want to use a different storage, you can specify it here.
Optional
modeThe mode to run the game in. Not used internally.
The name of the game. Not used internally.
The ID of the game. Used for naming saves.
Optional
title?: stringThe title of the game.
Optional
version?: stringThe version of the game. Not used internally.
Optional
settingsThe settings for the game.
Optional
framerate?: numberThe framerate to use for the game and various managers. Defaults to 30
The game configuration interface. Some options are not used internally, but you can access them by using
game.config
. See gameDefaultConfig for the default configuration.