Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 91 bytes modified
parent
89e5ffbe55
commit
8efb22cf33
|
@ -1280,6 +1280,13 @@ GameLib.CustomCode.prototype.powerup = function(gameObject) {
|
||||||
throw new Error('wrong type of game object');
|
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) {
|
if (gameObject.type === GameLib.CustomCode.POWERUP_LIFE) {
|
||||||
|
|
||||||
this.state.lives += 1;
|
this.state.lives += 1;
|
||||||
|
|
Loading…
Reference in New Issue