Global

Type Definitions

DisplayObject

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

GameConfig

A configuration object for Phaser.Game.

Type:
  • object
Properties:
Name Type Argument Default Description
GameConfig.antialias number | string <optional>
true
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 501

phaser-ce@2.8.8 is on GitHub and NPM

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