Bullet#moveDown()

moveDown() → {PIXI.DisplayObject} Moves this Game Object down one place in its parents display list.This call has no effect if the Game Object is already at the bottom of the display list. If this Game Object hasn't been added to a custom Group then this method will move it one object down within the Game World,because the World is the root Group from which all Game Objects descend. Returns PIXI.DisplayObject - This instance. Inherited From Phaser.Component.BringToTop#moveDown Source

Matrix#copyFrom()

copyFrom(matrix) → {Phaser.Matrix} Copies the properties from the given Matrix into this Matrix. Parameters Name Type Description matrix Phaser.Matrix The Matrix to copy from. Returns Phaser.Matrix - This Matrix object. Source code: geom/Matrix.js (Line 172)

Sprite#bringToTop()

bringToTop() → {PIXI.DisplayObject} Brings this Game Object to the top of its parents display list.Visually this means it will render over the top of any old child in the same Group. If this Game Object hasn't been added to a custom Group then this method will bring it to the top of the Game World,because the World is the root Group from which all Game Objects descend. Returns PIXI.DisplayObject - This instance. Inherited From Phaser.Component.BringToTop#bringToTop Source code: gameo

Component.LoadTexture#loadTexture()

loadTexture(key, frame, stopAnimation) Changes the base texture the Game Object is using. The old texture is removed and the new one is referenced or fetched from the Cache. If your Game Object is using a frame from a texture atlas and you just wish to change to another frame, then see the frame or frameName properties instead. You should only use loadTexture if you want to replace the base texture entirely. Calling this method causes a WebGL texture update, so use sparingly or in low-intensi

Rectangle#Rectangle

new Rectangle(x, y, width, height) Creates a new Rectangle object with the top-left corner specified by the x and y parameters and with the specified width and height parameters.If you call this function without parameters, a Rectangle with x, y, width, and height properties set to 0 is created. Parameters Name Type Description x number The x coordinate of the top-left corner of the Rectangle. y number The y coordinate of the top-left corner of the Rectangle. width number The width of

Canvas.setBackgroundColor()

<static> setBackgroundColor(canvas, color) → {HTMLCanvasElement} Sets the background color behind the canvas. This changes the canvas style property. Parameters Name Type Argument Default Description canvas HTMLCanvasElement The canvas to set the background color on. color string <optional> 'rgb(0,0,0)' The color to set. Can be in the format 'rgb(r,g,b)', or '#RRGGBB' or any valid CSS color. Returns HTMLCanvasElement - Returns the source canvas. Source code: u

Cache#removeImage()

removeImage(key, destroyBaseTexture) Removes an image from the cache. You can optionally elect to destroy it as well. This calls BaseTexture.destroy on it. Note that this only removes it from the Phaser Cache. If you still have references to the data elsewherethen it will persist in memory. Parameters Name Type Argument Default Description key string Key of the asset you want to remove. destroyBaseTexture boolean <optional> true Should the BaseTexture behind this image also

Sprite#contains()

contains(child) → {Boolean} Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. Parameters Name Type Description child DisplayObject - Returns Boolean - Inherited From PIXI.DisplayObjectContainer#contains Source code: pixi/display/DisplayObjectContainer.js (Line 449)

Physics.P2.BodyDebug#bringToTop()

bringToTop(child) → {any} Brings the given child to the top of this group so it renders above all other children. Parameters Name Type Description child any The child to bring to the top of this group. Returns any - The child that was moved. Inherited From Phaser.Group#bringToTop Source code: core/Group.js (Line 907)

FlexLayer#getBounds()

getBounds(targetCoordinateSpace) → {Rectangle} Retrieves the global bounds of the displayObjectContainer as a rectangle. The bounds calculation takes all visible children into consideration. Parameters Name Type Argument Description targetCoordinateSpace PIXIDisplayObject | PIXIMatrix <optional> Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object. Returns Rectangle - The rectangular bounding area