From a246365673f2849c65591cb37811e1cc2d211670 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 13 Mar 2018 14:03:16 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 10 bytes modified --- 21g30t1e75.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index ce368e0..5fe54f4 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -190,7 +190,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { } var position = {x:0, y:0}; - var rotation = 0; + //var rotation = 0; this.snake.map( function(body, index) { @@ -200,7 +200,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { position.x = body.position.x; position.y = body.position.y; - rotation = body.rotation; + //rotation = body.rotation; body.advance( this.state.direction, @@ -214,17 +214,17 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { y : body.position.y }; - var tempRotation = body.rotation; + //var tempRotation = body.rotation; body.position.x = position.x; body.position.y = position.y; - body.rotation = rotation; + //body.rotation = rotation; position.x = tempPosition.x; position.y = tempPosition.y; - rotation = tempRotation; + //rotation = tempRotation; }