Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 10 bytes modified
parent
59b2ef12cf
commit
cd9a63567b
|
@ -171,14 +171,14 @@ GameLib.CustomCode.prototype.adjustSnailPosition = function(delta) {
|
||||||
var modified = false;
|
var modified = false;
|
||||||
|
|
||||||
if (this.movement.left) {
|
if (this.movement.left) {
|
||||||
diff = data.delta * this.speed * 0.01;
|
diff = delta * this.speed * 0.01;
|
||||||
this.snail.position.z -= diff;
|
this.snail.position.z -= diff;
|
||||||
this.movement.left = false;
|
this.movement.left = false;
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.movement.right) {
|
if (this.movement.right) {
|
||||||
diff = data.delta * this.speed * 0.01;
|
diff = delta * this.speed * 0.01;
|
||||||
this.snail.position.z += diff;
|
this.snail.position.z += diff;
|
||||||
this.movement.right = false;
|
this.movement.right = false;
|
||||||
modified = true;
|
modified = true;
|
||||||
|
|
Loading…
Reference in New Issue