Interface: GameOptions
Options to specify HTML canvas, set game canvas size, and load game assets.
Extends
LocalizationOptions
Properties
additionalTranslation?
optionaladditionalTranslation:Translation
Additional translation for localization. This will typically be provided through setParameters() at runtime. This translation be merged into the existing translation and will overwrite any existing translation with the same key-value pairs. Thus, this can be used to modify an existing translation, either in whole or in part.
Inherited from
LocalizationOptions.additionalTranslation
Defined in
m2c2kit/packages/core/src/LocalizationOptions.ts:17
bodyBackgroundColor?
optionalbodyBackgroundColor:RgbaColor
Color of the html body, if the game does not fill the screen. Useful for showing scene boundaries. Default is the scene background color
Defined in
m2c2kit/packages/core/src/GameOptions.ts:52
canvasId?
optionalcanvasId:string
Id of the HTML canvas that game will be drawn on. If not provided, the first canvas found will be used
Defined in
m2c2kit/packages/core/src/GameOptions.ts:30
dynamicSizing?
optionaldynamicSizing:boolean
Should the game dynamically resize to fit the viewport and respond to DPI changes? Default is true
Defined in
m2c2kit/packages/core/src/GameOptions.ts:68