AudioSprite#get()

get(marker) → {Phaser.Sound} Get a sound with the given name. Parameters Name Type Description marker string The name of sound to get. Returns Phaser.Sound - The sound instance. Source code: sound/AudioSprite.js (Line 115)

AudioSprite#game

game : Phaser.Game A reference to the currently running Game. Source code: sound/AudioSprite.js (Line 23)

AudioSprite#config

config : Object JSON audio atlas object. Source code: sound/AudioSprite.js (Line 35)

AudioSprite#autoplayKey

autoplayKey : string If a sound is set to auto play, this holds the marker key of it. Source code: sound/AudioSprite.js (Line 41)

AudioSprite#autoplay

autoplay : boolean Is a sound set to autoplay or not? Source code: sound/AudioSprite.js (Line 48)

AudioSprite#AudioSprite

new AudioSprite(game, key) Audio Sprites are a combination of audio files and a JSON configuration.The JSON follows the format of that created by https://github.com/tonistiigi/audiosprite Parameters Name Type Description game Phaser.Game Reference to the current game instance. key string Asset key for the sound. Source code: sound/AudioSprite.js (Line 17)

ArrayUtils.transposeMatrix()

<static> transposeMatrix(array) → {Array.<Array.<any>>} Transposes the elements of the given matrix (array of arrays). Parameters Name Type Description array Array.<Array.<any>> The matrix to transpose. Returns Array.<Array.<any>> - A new transposed matrix Source code: utils/ArrayUtils.js (Line 101)

ArrayUtils.shuffle()

<static> shuffle(array) → {Array.<any>} A standard Fisher-Yates Array shuffle implementation which modifies the array in place. Parameters Name Type Description array Array.<any> The array to shuffle. Returns Array.<any> - The original array, now shuffled. Source code: utils/ArrayUtils.js (Line 80)

ArrayUtils.rotateRight()

<static> rotateRight(array) → {any} Moves the element from the end of the array to the start, shifting all items in the process.The "rotation" happens to the right. Before: [ A, B, C, D, E, F ]After: [ F, A, B, C, D, E ] See also Phaser.ArrayUtils.rotateLeft. Parameters Name Type Description array Array.<any> The array to rotate. The array is modified. Returns any - The shifted value. Source code: utils/ArrayUtils.js (Line 195)

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