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)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.