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

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

AudioSprite#game

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

AudioSprite#autoplay

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

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#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.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.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.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.rotate()

<static> rotate(array) → {any} This method is deprecated and should not be used. It may be removed in the future. Moves the element from the start of the array to the end, shifting all items in the process.The "rotation" happens to the left. Before: [ A, B, C, D, E, F ]After: [ B, C, D, E, F, A ] See also Phaser.ArrayUtils.rotateRight Parameters Name Type Description array Array.<any> The array to rotate. The array is modified. Returns any - The rotated value. Deprec