Game#id

[readonly] id : number Phaser Game ID (for when Pixi supports multiple instances). Source code: core/Game.js (Line 31)

Game#height

[readonly] height : integer The current Game Height in pixels. Do not modify this property directly: use Phaser.ScaleManager#setGameSize - eg. game.scale.setGameSize(width, height) - instead. Default Value 600 Source code: core/Game.js (Line 69)

Game#Game

new Game(width, height, renderer, parent, state, transparent, antialias, physicsConfig) This is where the magic happens. The Game object is the heart of your game,providing quick access to common functions and handling the boot process. "Hell, there are no rules here - we're trying to accomplish something." Thomas A. Edison Parameters Name Type Argument Default Description width number | string <optional> 800 The width of your game in game pixels. If given as a string the value mu

Game#fpsProblemNotifier

fpsProblemNotifier : Phaser.Signal If the game is struggling to maintain the desired FPS, this signal will be dispatched.The desired/chosen FPS should probably be closer to the Phaser.Time#suggestedFps value. Source code: core/Game.js (Line 375)

Game#forceSingleUpdate

forceSingleUpdate : boolean Should the game loop force a logic update, regardless of the delta timer? Set to true if you know you need this. You can toggle it on the fly. Source code: core/Game.js (Line 380)

Game#enableStep()

enableStep() Enable core game loop stepping. When enabled you must call game.step() directly (perhaps via a DOM button?)Calling step will advance the game loop by one frame. This is extremely useful for hard to track down errors! Source code: core/Game.js (Line 962)

Game#disableStep()

disableStep() Disables core game loop stepping. Source code: core/Game.js (Line 976)

Game#device

device : Phaser.Device Contains device information and capabilities. Source code: core/Game.js (Line 236)

Game#destroy()

destroy() Nukes the entire game from orbit. Calls destroy on Game.state, Game.sound, Game.scale, Game.stage, Game.input, Game.physics and Game.plugins. Then sets all of those local handlers to null, destroys the renderer, removes the canvas from the DOMand resets the PIXI default renderer. Source code: core/Game.js (Line 1001)

Game#debug

debug : Phaser.Utils.Debug A set of useful debug utilities. Source code: core/Game.js (Line 256)