Global

Type Definitions

DisplayObject

Type:
  • object
Source:
src/core/Group.js line 3163

GameConfig

A configuration object for Phaser.Game.

Type:
  • object
Properties:
Name Type Argument Default Description
GameConfig.antialias number | string <optional>
true
GameConfig.backgroundColor string <optional>
0

Sets Phaser.Stage#backgroundColor.

GameConfig.disableVisibilityChange boolean <optional>
false

Sets Phaser.Stage#disableVisibilityChange

GameConfig.height number | string <optional>
600
GameConfig.enableDebug boolean <optional>
true

Enable Phaser.Utils.Debug. You can gain a little performance by disabling this in production.

GameConfig.fullScreenScaleMode number <optional>

The scaling method used by the ScaleManager when in fullscreen.

GameConfig.fullScreenTarget DOMElement <optional>

The DOM element on which the Fullscreen API enter request will be invoked.

GameConfig.multiTexture boolean <optional>
false

Enable support for multiple bound Textures in WebGL. Same as {renderer: Phaser.WEBGL_MULTI}.

GameConfig.parent string | HTMLElement <optional>
''
GameConfig.physicsConfig object <optional>
null
GameConfig.preserveDrawingBuffer boolean <optional>
false

Whether or not the contents of the stencil buffer is retained after rendering.

GameConfig.renderer number <optional>
Phaser.AUTO
GameConfig.resolution number <optional>
1

The resolution of your game, as a ratio of canvas pixels to game pixels.

GameConfig.scaleMode number <optional>

The scaling method used by the ScaleManager when not in fullscreen.

GameConfig.seed number <optional>

Seed for Phaser.RandomDataGenerator.

GameConfig.state object <optional>
null
GameConfig.transparent boolean <optional>
false
GameConfig.width number | string <optional>
800
Source:
src/core/Game.js line 502

phaser-ce@2.9.2 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2017-11-09 using Tomorrow.