GameObjectCreator#audioSprite()

audioSprite(key) → {Phaser.AudioSprite}

Creates a new AudioSprite object.

Parameters
Name Type Description
key string

The Game.cache key of the sound that this object will use.

Returns

The newly created AudioSprite object.

Source code: gameobjects/GameObjectCreator.js (Line 134)
doc_phaser
2017-02-14 10:48:27
Comments
Leave a Comment

Please login to continue.