From b031b8eee2dc60d5dc644af75bae817b5f3c421f Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 13 Mar 2018 14:05:32 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 37 bytes modified --- 21g30t1e75.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 5fe54f4..7c3ba93 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -219,7 +219,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { body.position.x = position.x; body.position.y = position.y; - //body.rotation = rotation; + body.rotation += this.state.rotation; position.x = tempPosition.x; position.y = tempPosition.y; @@ -230,7 +230,9 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { body.applyToMesh(); }.bind(this) - ); + ); + + this.state.rotation = 0; }.bind(this);