From 9a2122e3b8f2bf81df996fa1527117ec7fd20e22 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 9 Mar 2018 16:00:04 +0100 Subject: [PATCH] Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 55 bytes modified --- 78gnds8jrj.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/78gnds8jrj.js b/78gnds8jrj.js index 658e877..52344a6 100644 --- a/78gnds8jrj.js +++ b/78gnds8jrj.js @@ -167,19 +167,17 @@ GameLib.CustomCode.prototype.adjustSpeed = function(delta) { GameLib.CustomCode.prototype.adjustSnailPosition = function(delta) { - var diff = 0; + var diff = delta * this.speed; var modified = false; if (this.movement.left) { - diff = delta * this.speed * 0.01; - this.snail.position.z -= diff; + this.snail.position.z += diff; this.movement.left = false; modified = true; } if (this.movement.right) { - diff = delta * this.speed * 0.01; - this.snail.position.z += diff; + this.snail.position.z -= diff; this.movement.right = false; modified = true; }