From ef2d36ef43c4595864207373fc16a768c9ee0465 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 21:43:23 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 10 bytes modified --- 21g30t1e75.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 6ddc4ee..9a1b4f6 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1115,8 +1115,14 @@ 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;