- Source:
- src/Phaser.js line 7
Classes
- Animation
- AnimationManager
- AnimationParser
- ArraySet
- ArrayUtils
- AudioSprite
- BitmapData
- BitmapText
- Bullet
- Button
- Cache
- Camera
- Canvas
- CanvasPool
- Circle
- Color
- Create
- Creature
- Device
- DeviceButton
- DOM
- Easing
- Ellipse
- Events
- Filter
- FlexGrid
- FlexLayer
- Frame
- FrameData
- Game
- GameObjectCreator
- GameObjectFactory
- Gamepad
- Graphics
- Group
- Hermite
- Image
- ImageCollection
- Input
- InputHandler
- Key
- Keyboard
- KeyCode
- Line
- LinkedList
- Loader
- LoaderParser
- Math
- Matrix
- Mouse
- MSPointer
- Net
- Particle
- Particles
- Path
- PathFollower
- PathPoint
- Physics
- Plugin
- PluginManager
- Point
- Pointer
- PointerMode
- Polygon
- QuadTree
- RandomDataGenerator
- Rectangle
- RenderTexture
- RequestAnimationFrame
- RetroFont
- Rope
- RoundedRectangle
- ScaleManager
- Signal
- SignalBinding
- SinglePad
- Sound
- SoundManager
- Sprite
- SpriteBatch
- Stage
- State
- StateManager
- Text
- Tile
- Tilemap
- TilemapLayer
- TilemapParser
- Tileset
- TileSprite
- Time
- Timer
- TimerEvent
- Touch
- Tween
- TweenData
- TweenManager
- Utils
- Video
- Weapon
- World
Members
-
<static, constant> ANGLE_DOWN : integer
-
The Angle (in degrees) a Game Object needs to be set to in order to face down.
Type:
- integer
- Source:
- src/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.
Type:
- integer
- Source:
- src/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.
Type:
- integer
- Source:
- src/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.
Type:
- integer
- Source:
- src/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.
Type:
- integer
- Source:
- src/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.
Type:
- integer
- Source:
- src/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.
Type:
- integer
- Source:
- src/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.
Type:
- integer
- Source:
- src/Phaser.js line 334
-
<static, constant> AUTO : integer
-
AUTO renderer - picks between WebGL or Canvas based on device.
Type:
- integer
- Source:
- src/Phaser.js line 26
-
<static, constant> BITMAPDATA : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 187
-
<static, constant> BITMAPTEXT : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 138
-
<static, constant> blendModes : Object
-
Various blend modes supported by Pixi. See the samples in Canvas Tutorial: Compositing.
IMPORTANT: The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
Type:
- Object
- Source:
- src/Phaser.js line 481
Properties:
Name Type Description blendModes.NORMAL
Number Draws new shapes on top of the existing content. This is the default setting.
blendModes.ADD
Number Where both shapes overlap the color is determined by adding color values.
blendModes.MULTIPLY
Number The pixels of the top layer are multiplied with the corresponding pixel of the bottom layer, making a darker picture.
blendModes.SCREEN
Number The pixels are inverted, multiplied, and inverted again, making a lighter picture.
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 -
<static, constant> BOTTOM_CENTER : integer
-
A constant representing a bottom-center alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 467
-
<static, constant> BOTTOM_LEFT : integer
-
A constant representing a bottom-left alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 460
-
<static, constant> BOTTOM_RIGHT : integer
-
A constant representing a bottom-right alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 474
-
<static, constant> BUTTON : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 103
-
<static, constant> CANVAS : integer
-
Canvas Renderer.
Type:
- integer
- Source:
- src/Phaser.js line 33
-
<static, constant> CANVAS_FILTER : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 194
-
<static, constant> CENTER : integer
-
A constant representing a center alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 432
-
<static, constant> CIRCLE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 243
-
<static, constant> CREATURE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 285
-
<static, constant> DOWN : integer
-
Direction constant.
Type:
- integer
- Source:
- src/Phaser.js line 89
-
<static, constant> ELLIPSE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 208
-
<static, constant> EMITTER : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 173
-
<static, constant> GAMES : array
-
An array of Phaser game instances.
Type:
- array
- Source:
- src/Phaser.js line 19
-
<static, constant> GRAPHICS : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 117
-
<static, constant> GROUP : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 145
-
<static, constant> HEADLESS : integer
-
Headless renderer (not visual output)
Type:
- integer
- Source:
- src/Phaser.js line 47
-
<static, constant> HORIZONTAL : integer
-
A horizontal orientation
Type:
- integer
- Source:
- src/Phaser.js line 306
-
<static, constant> IMAGE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 110
-
<static, constant> LANDSCAPE : integer
-
A landscape orientation
Type:
- integer
- Source:
- src/Phaser.js line 320
-
<static, constant> LEFT : integer
-
Direction constant.
Type:
- integer
- Source:
- src/Phaser.js line 68
-
<static, constant> LEFT_BOTTOM : integer
-
A constant representing a left-bottom alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 425
-
<static, constant> LEFT_TOP : integer
-
A constant representing a left-center alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 418
-
<static, constant> LINE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 257
-
<static, constant> MATRIX : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 264
-
<static, constant> NONE : integer
-
Direction constant.
Type:
- integer
- Source:
- src/Phaser.js line 61
-
<static, constant> PENDING_ATLAS : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 299
-
<static, constant> POINT : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 271
-
<static, constant> POINTER : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 229
-
<static, constant> POLYGON : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 180
-
<static, constant> PORTRAIT : integer
-
A portrait orientation
Type:
- integer
- Source:
- src/Phaser.js line 327
-
<static, constant> RECTANGLE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 250
-
<static, constant> RENDERTEXTURE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 152
-
<static, constant> RETROFONT : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 222
-
<static, constant> RIGHT : integer
-
Direction constant.
Type:
- integer
- Source:
- src/Phaser.js line 75
-
<static, constant> RIGHT_BOTTOM : integer
-
A constant representing a right-bottom alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 453
-
<static, constant> RIGHT_CENTER : integer
-
A constant representing a right-center alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 446
-
<static, constant> RIGHT_TOP : integer
-
A constant representing a right-top alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 439
-
<static, constant> ROPE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 236
-
<static, constant> ROUNDEDRECTANGLE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/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.
Type:
- Object
- Source:
- src/Phaser.js line 526
Properties:
Name Type Default Description Phaser.scaleModes.DEFAULT
Number LINEAR Phaser.scaleModes.LINEAR
Number Smooth scaling
Phaser.scaleModes.NEAREST
Number Pixelating scaling
-
<static, constant> SPRITE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 96
-
<static, constant> SPRITEBATCH : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 215
-
<static, constant> TEXT : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 124
-
<static, constant> TILEMAP : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 159
-
<static, constant> TILEMAPLAYER : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 166
-
<static, constant> TILESPRITE : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 131
-
<static, constant> TOP_CENTER : integer
-
A constant representing a top-center alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 397
-
<static, constant> TOP_LEFT : integer
-
A constant representing a top-left alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 390
-
<static, constant> TOP_RIGHT : integer
-
A constant representing a top-right alignment or position.
Type:
- integer
- Source:
- src/Phaser.js line 404
-
<static, constant> UP : integer
-
Direction constant.
Type:
- integer
- Source:
- src/Phaser.js line 82
-
<static, constant> VERSION : string
-
The Phaser version number.
Type:
- string
- Source:
- src/Phaser.js line 12
-
<static, constant> VERTICAL : integer
-
A vertical orientation
Type:
- integer
- Source:
- src/Phaser.js line 313
-
<static, constant> VIDEO : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 292
-
<static, constant> WEBGL : integer
-
WebGL Renderer.
Type:
- integer
- Source:
- src/Phaser.js line 40
-
<static, constant> WEBGL_FILTER : integer
-
Game Object type.
Type:
- integer
- Source:
- src/Phaser.js line 201
-
<static, constant> WEBGL_MULTI : integer
-
WebGL Renderer with MultiTexture support enabled.
Type:
- integer
- Source:
- src/Phaser.js line 54
Methods
-
<static> Component()
-
- Copyright:
-
- 2016 Photon Storm Ltd.
- License:
- Source:
- src/gameobjects/components/Component.js line 7