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; }