diff --git a/21g30t1e75.js b/21g30t1e75.js index 690a37e..bcf4089 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1280,6 +1280,13 @@ GameLib.CustomCode.prototype.powerup = function(gameObject) { throw new Error('wrong type of game object'); } + GameLib.Event.Emit( + GameLib.Event.PLAY_AUDIO, + { + name : 'Audio - Powerup' + } + ); + if (gameObject.type === GameLib.CustomCode.POWERUP_LIFE) { this.state.lives += 1;