From 8efb22cf33f9a364aeb4629e0fc7e369c07e8a8b Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 21:37:10 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 91 bytes modified --- 21g30t1e75.js | 7 +++++++ 1 file changed, 7 insertions(+) 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;