SoundManager converted and playing audio :)

This commit is contained in:
Richard Davey
2013-09-03 01:24:16 +01:00
parent ed13283f0f
commit c18de53bab
8 changed files with 1068 additions and 794 deletions
+10
View File
@@ -41,6 +41,16 @@ Phaser.GameObjectFactory.prototype = {
return this.game.tweens.create(obj, localReference);
},
audio: function (key, volume, loop) {
volume = volume || 1;
loop = loop || false;
return this.game.sound.add(key, volume, loop);
}
};