Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 91 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 21:37:10 +01:00
parent 89e5ffbe55
commit 8efb22cf33
1 changed files with 7 additions and 0 deletions

View File

@ -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;