GameObjectFactory#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/GameObjectFactory.js (Line 262)
doc_phaser
2017-02-14 10:48:38
Comments
Leave a Comment

Please login to continue.