From 05c4d037d6b4ad730ca54ae71809e44d50bcc529 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 7 Mar 2018 17:32:17 +0100 Subject: [PATCH] Update: CC - SnailRunner - Before Render (rlley2ki2i.js) 1 bytes modified --- rlley2ki2i.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rlley2ki2i.js b/rlley2ki2i.js index 6c351ec..6853a80 100644 --- a/rlley2ki2i.js +++ b/rlley2ki2i.js @@ -13,22 +13,23 @@ if (!this.initialized) { this.time = 0; this.spawnCloud = function() { - this.cloud.position.x = -3; + this.cloud.position.x = 3; this.cloud.updateInstance('position'); } this.initialized = true; } + this.road.rotation.z += 0.004 * data.delta; this.road.updateInstance('rotation'); -this.cloud.position.x -= 0.1 * data.delta; +this.cloud.position.x -= data.delta * 2; this.time += data.delta; if (this.time > 3) { - this.spawnCloud(); + //this.spawnCloud(); this.time = 0; }