Stage#removeChild()

removeChild(child) → {DisplayObject} Removes a child from the container. Parameters Name Type Description child DisplayObject The DisplayObject to remove Returns DisplayObject - The child that was removed. Inherited From PIXI.DisplayObjectContainer#removeChild Source code: pixi/display/DisplayObjectContainer.js (Line 171)

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

Stage#removeChildren()

removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes. Parameters Name Type Description beginIndex Number The beginning position. Default value is 0. endIndex Number The ending position. Default value is size of the container. Inherited From PIXI.DisplayObjectContainer#removeChildren Source code: pixi/display/DisplayObjectContainer.js (Line 213)

Stage#setBackgroundColor()

setBackgroundColor(color) Sets the background color for the Stage. The color can be given as a hex string ('#RRGGBB'), a CSS color string ('rgb(r,g,b)'), or a numeric value (0xRRGGBB). An alpha channel is not supported and will be ignored. If you've set your game to be transparent then calls to setBackgroundColor are ignored. Parameters Name Type Description color number | string The color of the background. Source code: core/Stage.js (Line 319)

Stage#setChildIndex()

setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters Name Type Description child DisplayObject The child DisplayObject instance for which you want to change the index number index Number The resulting index number for the child display object Inherited From PIXI.DisplayObjectContainer#setChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 132)

Stage#smoothed

smoothed : boolean Enable or disable texture smoothing for all objects on this Stage. Only works for bitmap/image textures. Smoothing is enabled by default. Set to true to smooth all sprites rendered on this Stage, or false to disable smoothing (great for pixel art) Source code: core/Stage.js (Line 386)

Stage#Stage

new Stage(game) The Stage controls root level display objects upon which everything is displayed.It also handles browser visibility handling and the pausing due to loss of focus. Parameters Name Type Description game Phaser.Game Game reference to the currently running game. Source code: core/Stage.js (Line 16)

Stage#swapChildren()

swapChildren(child, child2) Swaps the position of 2 Display Objects within this container. Parameters Name Type Description child DisplayObject - child2 DisplayObject - Inherited From PIXI.DisplayObjectContainer#swapChildren Source code: pixi/display/DisplayObjectContainer.js (Line 85)

Stage#update()

update() This is called automatically after the State.update, but before particles or plugins update. Source code: core/Stage.js (Line 156)

Stage#updateTransform()

updateTransform() Updates the transforms for all objects on the display list.This overrides the Pixi default as we don't need the interactionManager, but do need the game property check. Source code: core/Stage.js (Line 204)