ArrayUtils.rotateMatrix()

<static> rotateMatrix(matrix, direction) → {Array.<Array.<any>>} Rotates the given matrix (array of arrays). Based on the routine from http://jsfiddle.net/MrPolywhirl/NH42z/. Parameters Name Type Description matrix Array.<Array.<any>> The array to rotate; this matrix may be altered. direction number | string The amount to rotate: the rotation in degrees (90, -90, 270, -270, 180) or a string command ('rotateLeft', 'rotateRight' or 'rotate180'). Returns A

Group#physicsSortDirection

physicsSortDirection : integer If this Group contains Arcade Physics Sprites you can set a custom sort direction via this property. It should be set to one of the Phaser.Physics.Arcade sort direction constants: Phaser.Physics.Arcade.SORT_NONEPhaser.Physics.Arcade.LEFT_RIGHTPhaser.Physics.Arcade.RIGHT_LEFTPhaser.Physics.Arcade.TOP_BOTTOMPhaser.Physics.Arcade.BOTTOM_TOP If set to null the Group will use whatever Phaser.Physics.Arcade.sortDirection is set to. This is the default behavior. Sour

Particles.Arcade.Emitter#pendingDestroy

pendingDestroy : boolean A Group is that has pendingDestroy set to true is flagged to have its destroy methodcalled on the next logic update.You can set it directly to flag the Group to be destroyed on its next update. This is extremely useful if you wish to destroy a Group from within one of its own callbacksor a callback of one of its children. Inherited From Phaser.Group#pendingDestroy Source code: core/Group.js (Line 119)

Particles.Arcade.Emitter#forEachAlive()

forEachAlive(callback, callbackContext, args) Call a function on each alive 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 c

Particles.Arcade.Emitter#physicsBodyType

physicsBodyType : integer If enableBody is true this is the type of physics body that is created on new Sprites. The valid values are Phaser.Physics.ARCADE, Phaser.Physics.P2JS, Phaser.Physics.NINJA, etc. Inherited From Phaser.Group#physicsBodyType Source code: core/Group.js (Line 225)

TilemapLayer#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

Particles.Arcade.Emitter#filter()

filter(predicate, checkExists) → {Phaser.ArraySet} Find children matching a certain predicate. For example: var healthyList = Group.filter(function(child, index, children) { return child.health > 10 ? true : false; }, true); healthyList.callAll('attack'); Note: Currently this will skip any children which are Groups themselves. Parameters Name Type Argument Default Description predicate function The function that each child will be evaluated against. Each child of the group will

Particles.Arcade.Emitter#divideAll()

divideAll(property, amount, checkAlive, checkVisible) Divides the given property by the amount on all children in this group. Group.divideAll('x', 2) will half the child.x value for each child. Parameters Name Type Description property string The property to divide, for example 'body.velocity.x' or 'angle'. amount number The amount to divide the property by. If child.x = 100 then divideAll('x', 2) would make child.x = 50. checkAlive boolean If true the property will only be changed if

Particles.Arcade.Emitter#kill()

kill() → {Phaser.Particles.Arcade.Emitter} Call this function to turn off all the particles and the emitter. Returns Phaser.Particles.Arcade.Emitter - This Emitter instance. Source code: particles/arcade/Emitter.js (Line 407)

Particles.Arcade.Emitter#sort()

sort(key, order) Sort the children in the group according to a particular key and ordering. Call this function to sort the group according to a particular key value and order. For example to depth sort Sprites for Zelda-style game you might call group.sort('y', Phaser.Group.SORT_ASCENDING) at the bottom of your State.update(). Internally this uses a standard JavaScript Array sort, so everything that applies there also applies here, includingalphabetical sorting, mixing strings and numbers, an