Update: CC - SnailRunner - Mouse Move (jz3qg0174l.js) 0 bytes modified
parent
d1c8b4a288
commit
01c2f746ed
|
@ -8,14 +8,14 @@ if (!this.initialized) {
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.snail.position.z += data.event.movementX * 0.01;
|
this.snail.position.z -= data.event.movementX * 0.01;
|
||||||
|
|
||||||
if (this.snail.position.z < -9) {
|
if (this.snail.position.z < -5) {
|
||||||
this.snail.position.z = -9;
|
this.snail.position.z = -5;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.snail.position.z > 9) {
|
if (this.snail.position.z > 5) {
|
||||||
this.snail.position.z = 9;
|
this.snail.position.z = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.solar.position.z = this.snail.position.z;
|
this.solar.position.z = this.snail.position.z;
|
||||||
|
|
Loading…
Reference in New Issue