Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 10 bytes modified
parent
30d142b395
commit
ef2d36ef43
|
@ -1115,7 +1115,13 @@ GameLib.CustomCode.prototype.initializeGrid = function() {
|
|||
* @param position
|
||||
*/
|
||||
GameLib.CustomCode.prototype.explode = function(position) {
|
||||
console.log('explode snake at position : ' + position.x + ', ' + position.y);
|
||||
|
||||
GameLib.Event.Emit(
|
||||
GameLib.Event.PLAY_AUDIO,
|
||||
{
|
||||
name : 'Audio - Crashed'
|
||||
}
|
||||
);
|
||||
|
||||
this.state.exploding = true;
|
||||
this.state.lives -= 1;
|
||||
|
|
Loading…
Reference in New Issue