Type Definitions
-
DisplayObject
-
A display object is any object that can be rendered in the Phaser/pixi.js scene graph:
Type:
- object
- Source:
- src/core/Group.js line 3103
-
GameConfig
-
A configuration object for Phaser.Game.
Type:
- object
- Source:
- src/core/Game.js line 501
Properties:
Name Type Argument Default Description GameConfig.antialiasnumber | string <optional>
true GameConfig.heightnumber | string <optional>
600 GameConfig.enableDebugboolean <optional>
true Enable Phaser.Utils.Debug. You can gain a little performance by disabling this in production.
GameConfig.fullScreenScaleModenumber <optional>
The scaling method used by the ScaleManager when in fullscreen.
GameConfig.fullScreenTargetDOMElement <optional>
The DOM element on which the Fullscreen API enter request will be invoked.
GameConfig.multiTextureboolean <optional>
false Enable support for multiple bound Textures in WebGL. Same as
{renderer: Phaser.WEBGL_MULTI}.GameConfig.parentstring | HTMLElement <optional>
'' GameConfig.physicsConfigobject <optional>
null GameConfig.preserveDrawingBufferboolean <optional>
false Whether or not the contents of the stencil buffer is retained after rendering.
GameConfig.renderernumber <optional>
Phaser.AUTO GameConfig.resolutionnumber <optional>
1 The resolution of your game, as a ratio of canvas pixels to game pixels.
GameConfig.scaleModenumber <optional>
The scaling method used by the ScaleManager when not in fullscreen.
GameConfig.seednumber <optional>
Seed for Phaser.RandomDataGenerator.
GameConfig.stateobject <optional>
null GameConfig.transparentboolean <optional>
false GameConfig.widthnumber | string <optional>
800