From 73cdd1898081502dcdc9193c2eeb18846cfaa250 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 21 Mar 2018 10:33:19 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 72 bytes modified --- 21g30t1e75.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 2309f7c..3356ab0 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -310,8 +310,8 @@ GameLib.CustomCode.SnakeBody.LastZ = 0; GameLib.CustomCode.SnakeBody.prototype.applyToMesh = function() { - this.mesh.position.x = this.position.x + GameLib.CustomCode.GRID_OFFSET_X; - this.mesh.position.y = this.position.y + GameLib.CustomCode.GRID_OFFSET_Y; + this.mesh.position.x = (this.position.x * GameLib.CustomCode.BODY_SCALE_X) + GameLib.CustomCode.GRID_OFFSET_X; + this.mesh.position.y = (this.position.y * GameLib.CustomCode.BODY_SCALE_Y) + GameLib.CustomCode.GRID_OFFSET_Y; //if ((this.mesh.rotation.z - (this.orientation * Math.PI / 2)) > Math.PI) { // this.mesh.rotation.z -= Math.PI;