Ellipse#Ellipse

new Ellipse(x, y, width, height) Creates a Ellipse object. A curve on a plane surrounding two focal points. Parameters Name Type Argument Default Description x number <optional> 0 The X coordinate of the upper-left corner of the framing rectangle of this ellipse. y number <optional> 0 The Y coordinate of the upper-left corner of the framing rectangle of this ellipse. width number <optional> 0 The overall width of this ellipse. height number <optional>

Sprite#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)

Utils.Debug#inputInfo()

inputInfo(x, y, color) Render debug information about the Input object. Parameters Name Type Argument Default Description x number X position of the debug info to be rendered. y number Y position of the debug info to be rendered. color string <optional> 'rgb(255,255,255)' color of the debug info to be rendered. (format is css color string). Source code: utils/Debug.js (Line 433)

Stage#width

width : number The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set Inherited From PIXI.DisplayObjectContainer#width Source code: pixi/display/DisplayObjectContainer.js (Line 571)

Physics.P2#addSpring()

addSpring(spring) → {Phaser.Physics.P2.Spring} Adds a Spring to the world. Parameters Name Type Description spring Phaser.Physics.P2.Spring | p2.LinearSpring | p2.RotationalSpring The Spring to add to the World. Returns Phaser.Physics.P2.Spring - The Spring that was added. Source code: physics/p2/World.js (Line 931)

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

Tween#totalDuration

totalDuration : Phaser.TweenData Gets the total duration of this Tween, including all child tweens, in milliseconds. Source code: tween/Tween.js (Line 893)

Cache#checkTextureKey()

checkTextureKey(key) → {boolean} Checks if the given key exists in the Texture Cache. Parameters Name Type Description key string The key of the asset within the cache. Returns boolean - True if the key exists in the cache, otherwise false. Source code: loader/Cache.js (Line 850)

Mouse#button

button : number This property was removed in Phaser 2.4 and should no longer be used.Instead please see the Pointer button properties such as Pointer.leftButton, Pointer.rightButton and so on.Or Pointer.button holds the DOM event button value if you require that. Source code: input/Mouse.js (Line 76)

InputHandler#pointerUp()

pointerUp(pointerId) → {boolean} If the Pointer is up this returns true.This only checks if the Pointer is up, not if it's up over any specific Sprite. Parameters Name Type Argument Default Description pointerId integer <optional> 0 Returns boolean - True if the given pointer is up, otherwise false. Source code: input/InputHandler.js (Line 555)