Phaser

Source - Phaser.js, line 7

Members

<static, constant> ANGLE_DOWN:integer

The Angle (in degrees) a Game Object needs to be set to in order to face down.

Source - Phaser.js, line 341

<static,constant> ANGLE_LEFT:integer

The Angle (in degrees) a Game Object needs to be set to in order to face left.

Source - Phaser.js, line 348

<static,constant> ANGLE_NORTH_EAST:integer

The Angle (in degrees) a Game Object needs to be set to in order to face north east.

Source - Phaser.js, line 362

<static,constant> ANGLE_NORTH_WEST:integer

The Angle (in degrees) a Game Object needs to be set to in order to face north west.

Source - Phaser.js, line 369

<static,constant> ANGLE_RIGHT:integer

The Angle (in degrees) a Game Object needs to be set to in order to face right.

Source - Phaser.js, line 355

<static,constant> ANGLE_SOUTH_EAST:integer

The Angle (in degrees) a Game Object needs to be set to in order to face south east.

Source - Phaser.js, line 376

<static,constant> ANGLE_SOUTH_WEST:integer

The Angle (in degrees) a Game Object needs to be set to in order to face south west.

Source - Phaser.js, line 383

<static,constant> ANGLE_UP:integer

The Angle (in degrees) a Game Object needs to be set to in order to face up.

Source - Phaser.js, line 334

<static,constant> AUTO:integer

AUTO renderer - picks between WebGL or Canvas based on device.

Source - Phaser.js, line 26

<static, constant>BITMAPDATA:integer

Game Object type.

Source - Phaser.js, line 187

<static,constant> BITMAPTEXT:integer

Game Object type.

Source - Phaser.js, line 138

<static,constant> blendModes:Object

Various blend modes supported by Pixi.

IMPORTANT: The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.

Properties:

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

Source - Phaser.js, line 481

<static,constant> BOTTOM_CENTER:integer

A constant representing a bottom-center alignment or position.

Source - Phaser.js, line 467

<static,constant> BOTTOM_LEFT:integer

A constant representing a bottom-left alignment or position.

Source - Phaser.js, line 460

<static,constant> BOTTOM_RIGHT:integer

A constant representing a bottom-right alignment or position.

Source - Phaser.js, line 474

<static,constant> BUTTON:integer

Game Object type.

Source - Phaser.js, line 103

<static,constant> CANVAS:integer

Canvas Renderer.

Source - Phaser.js, line 33

<static, constant>CANVAS_FILTER:integer

Game Object type.

Source - Phaser.js, line 194

<static,constant> CENTER:integer

A constant representing a center alignment or position.

Source - Phaser.js, line 432

<static,constant> CIRCLE:integer

Game Object type.

Source - Phaser.js, line 243

<static,constant> CREATURE:integer

Game Object type.

Source - Phaser.js, line 285

<static,constant> DOWN:integer

Direction constant.

Source - Phaser.js, line 89

<static, constant>ELLIPSE:integer

Game Object type.

Source - Phaser.js, line 208

<static,constant> EMITTER:integer

Game Object type.

Source - Phaser.js, line 173

<static,constant> GAMES:array

An array of Phaser game instances.

Source - Phaser.js, line 19

<static, constant>GRAPHICS:integer

Game Object type.

Source - Phaser.js, line 117

<static,constant> GROUP:integer

Game Object type.

Source - Phaser.js, line 145

<static,constant> HEADLESS:integer

Headless renderer (not visual output)

Source - Phaser.js, line 47

<static, constant>HORIZONTAL:integer

A horizontal orientation

Source - Phaser.js, line 306

<static,constant> IMAGE:integer

Game Object type.

Source - Phaser.js, line 110

<static,constant> LANDSCAPE:integer

A landscape orientation

Source - Phaser.js, line 320

<static,constant> LEFT:integer

Direction constant.

Source - Phaser.js, line 68

<static, constant>LEFT_BOTTOM:integer

A constant representing a left-bottom alignment or position.

Source - Phaser.js, line 425

<static,constant> LEFT_TOP:integer

A constant representing a left-center alignment or position.

Source - Phaser.js, line 418

<static,constant> LINE:integer

Game Object type.

Source - Phaser.js, line 257

<static,constant> MATRIX:integer

Game Object type.

Source - Phaser.js, line 264

<static,constant> NONE:integer

Direction constant.

Source - Phaser.js, line 61

<static, constant>PENDING_ATLAS:integer

Game Object type.

Source - Phaser.js, line 299

<static,constant> POINT:integer

Game Object type.

Source - Phaser.js, line 271

<static,constant> POINTER:integer

Game Object type.

Source - Phaser.js, line 229

<static,constant> POLYGON:integer

Game Object type.

Source - Phaser.js, line 180

<static,constant> PORTRAIT:integer

A portrait orientation

Source - Phaser.js, line 327

<static,constant> RECTANGLE:integer

Game Object type.

Source - Phaser.js, line 250

<static,constant> RENDERTEXTURE:integer

Game Object type.

Source - Phaser.js, line 152

<static,constant> RETROFONT:integer

Game Object type.

Source - Phaser.js, line 222

<static,constant> RIGHT:integer

Direction constant.

Source - Phaser.js, line 75

<static, constant>RIGHT_BOTTOM:integer

A constant representing a right-bottom alignment or position.

Source - Phaser.js, line 453

<static,constant> RIGHT_CENTER:integer

A constant representing a right-center alignment or position.

Source - Phaser.js, line 446

<static,constant> RIGHT_TOP:integer

A constant representing a right-top alignment or position.

Source - Phaser.js, line 439

<static,constant> ROPE:integer

Game Object type.

Source - Phaser.js, line 236

<static,constant> ROUNDEDRECTANGLE:integer

Game Object type.

Source - Phaser.js, line 278

<static,constant> scaleModes:Object

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.

Properties:

Name

Type

Default

Description

Phaser.scaleModes.DEFAULT

Number

LINEAR

Phaser.scaleModes.LINEAR

Number

Smooth scaling

Phaser.scaleModes.NEAREST

Number

Pixelating scaling

Source - Phaser.js, line 526

<static,constant> SPRITE:integer

Game Object type.

Source - Phaser.js, line 96

<static, constant>SPRITEBATCH:integer

Game Object type.

Source - Phaser.js, line 215

<static,constant> TEXT:integer

Game Object type.

Source - Phaser.js, line 124

<static,constant> TILEMAP:integer

Game Object type.

Source - Phaser.js, line 159

<static,constant> TILEMAPLAYER:integer

Game Object type.

Source - Phaser.js, line 166

<static,constant> TILESPRITE:integer

Game Object type.

Source - Phaser.js, line 131

<static,constant> TOP_CENTER:integer

A constant representing a top-center alignment or position.

Source - Phaser.js, line 397

<static,constant> TOP_LEFT:integer

A constant representing a top-left alignment or position.

Source - Phaser.js, line 390

<static,constant> TOP_RIGHT:integer

A constant representing a top-right alignment or position.

Source - Phaser.js, line 404

<static,constant> UP:integer

Direction constant.

Source - Phaser.js, line 82

<static, constant>VERSION:string

The Phaser version number.

Source - Phaser.js, line 12

<static, constant>VERTICAL:integer

A vertical orientation

Source - Phaser.js, line 313

<static,constant> VIDEO:integer

Game Object type.

Source - Phaser.js, line 292

<static,constant> WEBGL:integer

WebGL Renderer.

Source - Phaser.js, line 40

<static, constant>WEBGL_FILTER:integer

Game Object type.

Source - Phaser.js, line 201

<static,constant> WEBGL_MULTI:integer

WebGL Renderer with MultiTexture support enabled.

Source - Phaser.js, line 54

Methods

<static> Component()

Author: - Richard Davey

Copyright: - 2016 Photon Storm Ltd.

License: - MIT License

Source - gameobjects/components/Component.js, line 7