From ef0728e51740d0abe283b4278e09ad76e6aec11e Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 13 Mar 2018 13:43:41 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 13 bytes modified --- 21g30t1e75.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index bda8fb4..d1db342 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -174,7 +174,7 @@ GameLib.CustomCode.SnakeBody.prototype.advance = function(direction, rotation) { this.position.x += direction.x; this.position.y += direction.y; - //this.rotation = rotation; + this.rotation = rotation; } GameLib.CustomCode.prototype.advanceSnake = function(delta) { @@ -202,7 +202,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { position.x = body.position.x; position.y = body.position.y; - body.advance(this.direction); + body.advance(this.direction, this.rotation); } else { body.position.x = position.x;