The Angle (in degrees) a Game Object needs to be set to in order to face down.
The Angle (in degrees) a Game Object needs to be set to in order to face left.
The Angle (in degrees) a Game Object needs to be set to in order to face north east.
The Angle (in degrees) a Game Object needs to be set to in order to face north west.
The Angle (in degrees) a Game Object needs to be set to in order to face right.
The Angle (in degrees) a Game Object needs to be set to in order to face south east.
The Angle (in degrees) a Game Object needs to be set to in order to face south west.
The Angle (in degrees) a Game Object needs to be set to in order to face up.
AUTO renderer - picks between WebGL or Canvas based on device.
Game Object type.
Game Object type.
Various blend modes supported by Pixi.
IMPORTANT: The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
Name | Type | Description |
---|---|---|
blendModes.NORMAL | Number | |
blendModes.ADD | Number | |
blendModes.MULTIPLY | Number | |
blendModes.SCREEN | Number | |
blendModes.OVERLAY | Number | |
blendModes.DARKEN | Number | |
blendModes.LIGHTEN | Number | |
blendModes.COLOR_DODGE | Number | |
blendModes.COLOR_BURN | Number | |
blendModes.HARD_LIGHT | Number | |
blendModes.SOFT_LIGHT | Number | |
blendModes.DIFFERENCE | Number | |
blendModes.EXCLUSION | Number | |
blendModes.HUE | Number | |
blendModes.SATURATION | Number | |
blendModes.COLOR | Number | |
blendModes.LUMINOSITY | Number |
A constant representing a bottom-center alignment or position.
A constant representing a bottom-left alignment or position.
A constant representing a bottom-right alignment or position.
Game Object type.
Canvas Renderer.
Game Object type.
A constant representing a center alignment or position.
Game Object type.
Game Object type.
Direction constant.
Game Object type.
Game Object type.
An array of Phaser game instances.
Game Object type.
Game Object type.
Headless renderer (not visual output)
A horizontal orientation
Game Object type.
A landscape orientation
Direction constant.
A constant representing a left-bottom alignment or position.
A constant representing a left-center alignment or position.
A constant representing a left-top alignment or position.
Game Object type.
Game Object type.
Direction constant.
Game Object type.
Game Object type.
Game Object type.
Game Object type.
A portrait orientation
Game Object type.
Game Object type.
Game Object type.
Direction constant.
A constant representing a right-bottom alignment or position.
A constant representing a right-center alignment or position.
A constant representing a right-top alignment or position.
Game Object type.
Game Object type.
The scale modes that are supported by Pixi.
The DEFAULT scale mode affects the default scaling mode of future operations.
It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
Name | Type | Default | Description |
---|---|---|---|
Phaser.scaleModes | Object | ||
scaleModes.DEFAULT | Number | LINEAR | |
scaleModes.LINEAR | Number | Smooth scaling | |
scaleModes.NEAREST | Number | Pixelating scaling |
Game Object type.
Game Object type.
Game Object type.
Game Object type.
Game Object type.
Game Object type.
A constant representing a top-center alignment or position.
A constant representing a top-left alignment or position.
A constant representing a top-right alignment or position.
Direction constant.
The Phaser version number.
A vertical orientation
Game Object type.
WebGL Renderer.
Game Object type.
Call this function from the Dev Tools console.
It will scan the display list and output all of the Objects it finds, and their renderOrderIDs.
Note Requires a browser that supports console.group and console.groupEnd (such as Chrome)
Name | Type | Argument | Description |
---|---|---|---|
displayObject | Object | <optional> | The displayObject level display object to start from. Defaults to the World. |
Emit an event to all registered event listeners.
Name | Type | Description |
---|---|---|
eventName | String | The name of the event. |
Indication if we've emitted an event.
Return a list of assigned event listeners.
Name | Type | Description |
---|---|---|
eventName | String | The events that should be listed. |
An array of listener functions
Mixes in the properties of the EventTarget prototype onto another object
Name | Type | Description |
---|---|---|
object | Object | The obj to mix into |
Remove event listeners.
Name | Type | Description |
---|---|---|
eventName | String | The event we want to remove. |
callback | function | The listener that we need to find. |
Register a new EventListener for the given event.
Name | Type | Description |
---|---|---|
eventName | String | Name of the event. |
callback | Functon | fn Callback function. |
Add an EventListener that's only called once.
Name | Type | Description |
---|---|---|
eventName | String | Name of the event. |
callback | function | Callback function. |
The total number of PathPoints in this Path.
Remove all listeners or only the listeners for the specified event.
Name | Type | Description |
---|---|---|
eventName | String | The event you want to remove all listeners for. |
Stops the propagation of events to sibling listeners (no longer calls any listeners).
Stops the propagation of events up the scene graph (prevents bubbling).
A display object is any object that can be rendered in the Phaser/pixi.js scene graph.
This includes Phaser.Group (groups are display objects!),
Phaser.Sprite, Phaser.Button, Phaser.Text
as well as PIXI.DisplayObject and all derived types.
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/global.html