From 2e106ebee4c88b3a1c70e44de0e902c0ae610375 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 9 Mar 2018 15:30:56 +0100 Subject: [PATCH] Update: CC - SnailRunner - Mouse Move (jz3qg0174l.js) 472 bytes modified --- jz3qg0174l.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/jz3qg0174l.js b/jz3qg0174l.js index ab851cc..35fb4bc 100644 --- a/jz3qg0174l.js +++ b/jz3qg0174l.js @@ -3,27 +3,8 @@ if (!this.entityLoaded) { } 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.snail.position.z -= data.event.movementX * 0.01 * this.entityLoaded.speed; - -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'); - +this.adjustSnailPosition(data.event.movementX); //@ sourceURL=mouseMove.js \ No newline at end of file