Update: CC - SnailRunner - Mouse Move (jz3qg0174l.js) 472 bytes modified
parent
f83b17fe0e
commit
2e106ebee4
|
@ -3,27 +3,8 @@ if (!this.entityLoaded) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
this.snail = this.entityLoaded.snail;
|
|
||||||
this.solar = this.entityLoaded.solar;
|
|
||||||
this.camera = this.entityLoaded.camera;
|
|
||||||
this.beforeRender = this.entityLoaded.beforeRender;
|
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.snail.position.z -= data.event.movementX * 0.01 * this.entityLoaded.speed;
|
this.adjustSnailPosition(data.event.movementX);
|
||||||
|
|
||||||
if (this.snail.position.z < -4.8) {
|
|
||||||
this.snail.position.z = -4.8;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.snail.position.z > 4.8) {
|
|
||||||
this.snail.position.z = 4.8;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.solar.position.z = this.snail.position.z;
|
|
||||||
|
|
||||||
this.snail.updateInstance('position');
|
|
||||||
this.solar.updateInstance('position');
|
|
||||||
|
|
||||||
//@ sourceURL=mouseMove.js
|
//@ sourceURL=mouseMove.js
|
Loading…
Reference in New Issue