From df47fa0df581f4ade7360a77b412f6c6b8c00fc4 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 21:33:33 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 93 bytes modified --- 21g30t1e75.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 8172741..472cea2 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1517,7 +1517,7 @@ GameLib.CustomCode.prototype.restore = function() { /** * Move the snake forward and do collision detection * @type {function(this:snakeEntityLoaded)} - */ + */Move GameLib.CustomCode.prototype.advanceSnake = function(delta) { if (this.state.exploding) { @@ -1535,7 +1535,14 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { var backup = null; var temp = null; var advanced = false; - + + GameLib.Event.Emit( + GameLib.Event.PLAY_AUDIO, + { + name : 'Audio - Move' + } + ); + this.snake.map( function(body, index) {