Math.PI2

<static> PI2 Twice PI. Properties: Name Type Description Phaser.Math#PI2 number Default Value ~6.283 Source code: math/Math.js (Line 24)

ScaleManager#bounds

[readonly] bounds : Phaser.Rectangle The bounds of the scaled game. The x/y will match the offset of the canvas element and the width/height the scaled width and height. Source code: core/ScaleManager.js (Line 342)

Particle#setFrame()

setFrame(frame) Sets the texture frame the Game Object uses for rendering. This is primarily an internal method used by loadTexture, but is exposed for the use of plugins and custom classes. Parameters Name Type Description frame Phaser.Frame The Frame to be used by the texture. Inherited From Phaser.Component.LoadTexture#setFrame Source code: gameobjects/components/LoadTexture.js (Line 155)

Particles.Arcade.Emitter#getLocalBounds()

getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the displayObjectContainer as a rectangle without any transformations. The calculation takes all visible children into consideration. Returns Rectangle - The rectangular bounding area Inherited From PIXI.DisplayObjectContainer#getLocalBounds Source code: pixi/display/DisplayObjectContainer.js (Line 437)

DisplayObjectContainer#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. Source code: pixi/display/DisplayObjectContainer.js (Line 213)

Particles.Arcade.Emitter#forEachDead()

forEachDead(callback, callbackContext, args) Call a function on each dead child in this group. See forEach for details. Parameters Name Type Argument Default Description callback function The function that will be called for each applicable child. The child will be passed as the first argument. callbackContext object The context in which the function should be called (usually 'this'). args any <optional> <repeatable> (none) Additional arguments to pass to the cal

Math#distancePow()

distancePow(x1, y1, x2, y2, pow) → {number} Returns the distance between the two given set of coordinates at the power given. Parameters Name Type Argument Default Description x1 number y1 number x2 number y2 number pow number <optional> 2 Returns number - The distance between the two sets of coordinates. Source code: math/Math.js (Line 1009)

AnimationManager#validateFrames()

validateFrames(frames, useNumericIndex) → {boolean} Check whether the frames in the given array are valid and exist. Parameters Name Type Argument Default Description frames Array An array of frames to be validated. useNumericIndex boolean <optional> true Validate the frames based on their numeric index (true) or string index (false) Returns boolean - True if all given Frames are valid, otherwise false. Source code: animation/AnimationManager.js (Line 219)

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)

Particles.Arcade.Emitter#getRandomExists()

getRandomExists(startIndex, endIndex) → {any} Returns a random child from the Group that has exists set to true. Optionally you can specify a start and end index. For example if this Group had 100 children,and you set startIndex to 0 and endIndex to 50, it would return a random child from onlythe first 50 children in the Group. Parameters Name Type Argument Default Description startIndex integer <optional> 0 The first child index to start the search from. endIndex integer <o