From 18c618ca359fcd39dd9b900f084c2a4cee1ea7d4 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 22 Mar 2018 12:45:06 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 76 bytes modified --- 21g30t1e75.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/21g30t1e75.js b/21g30t1e75.js index d7ccb08..cde9222 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -958,6 +958,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { backup.flip = body.flip; } + if (this.state.eating) { + return + } + if (index > 0) { temp = { @@ -1068,6 +1072,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { ) this.state.turning = false; + this.state.eating = false; this.visualizeGrid();