Button#events

events : Phaser.Events All Phaser Game Objects have an Events class which contains all of the events that are dispatched when certain things happen to thisGame Object, or any of its components. Inherited From Phaser.Component.Core#events Source code: gameobjects/components/Core.js (Line 185) See Phaser.Events

InputHandler#allowHorizontalDrag

allowHorizontalDrag : boolean Controls if the Sprite is allowed to be dragged horizontally. Default Value true Source code: input/InputHandler.js (Line 69)

Physics.P2#createSpring()

createSpring(bodyA, bodyB, restLength, stiffness, damping, worldA, worldB, localA, localB) → {Phaser.Physics.P2.Spring} Creates a linear spring, connecting two bodies. A spring can have a resting length, a stiffness and damping. Parameters Name Type Argument Default Description bodyA Phaser.Sprite | Phaser.Physics.P2.Body | p2.Body First connected body. bodyB Phaser.Sprite | Phaser.Physics.P2.Body | p2.Body Second connected body. restLength number <optional> 1 Rest len

Physics.Ninja.Tile#collideWorldBounds()

collideWorldBounds() Tiles cannot collide with the world bounds, it's up to you to keep them where you want them. But we need this API stub to satisfy the Body. Source code: physics/ninja/Tile.js (Line 153)

Bullet#anchor

anchor :Point The anchor sets the origin point of the texture.The default is 0,0 this means the texture's origin is the top leftSetting than anchor to 0.5,0.5 means the textures origin is centeredSetting the anchor to 1,1 would mean the textures origin points will be the bottom right corner Inherited From PIXI.Sprite#anchor Source code: pixi/display/Sprite.js (Line 17)

Camera#focusOn()

focusOn(displayObject) Move the camera focus on a display object instantly. Parameters Name Type Description displayObject any The display object to focus the camera on. Must have visible x/y properties. Source code: core/Camera.js (Line 335)

Color.getColor32()

<static> getColor32(a, r, g, b) → {number} Given an alpha and 3 color values this will return an integer representation of it. Parameters Name Type Description a number The alpha color component, in the range 0 - 255. r number The red color component, in the range 0 - 255. g number The green color component, in the range 0 - 255. b number The blue color component, in the range 0 - 255. Returns number - A native color value integer (format: 0xAARRGGBB). Source code: uti

Rectangle#topLeft

topLeft : Phaser.Point The location of the Rectangles top left corner as a Point object. Source code: geom/Rectangle.js (Line 700)

TilemapLayer#removeChildAt()

removeChildAt(index) → {DisplayObject} Removes a child from the specified index position. Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child that was removed. Inherited From PIXI.DisplayObjectContainer#removeChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 191)

Math#linear()

linear(p0, p1, t) → {number} Calculates a linear (interpolation) value over t. Parameters Name Type Description p0 number p1 number t number A value between 0 and 1. Returns number - Source code: math/Math.js (Line 831)