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();