Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 55 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 16:00:04 +01:00
parent cd9a63567b
commit 9a2122e3b8
1 changed files with 3 additions and 5 deletions

View File

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