From 97f9c2e45989cd2c7a60c7eb3e096b34ecd236be Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 9 Mar 2018 19:00:49 +0100 Subject: [PATCH] Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 59 bytes modified --- 78gnds8jrj.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/78gnds8jrj.js b/78gnds8jrj.js index d76ac15..c108842 100644 --- a/78gnds8jrj.js +++ b/78gnds8jrj.js @@ -89,7 +89,9 @@ GameLib.CustomCode.prototype.spawnCloud = function() { var cloud = this.cloud.clone(); this.cloud.position.x = -155; - this.cloud.position.z = Math.sin(this.time) * 2; + //this.cloud.position.z = Math.sin(this.time) * 2; + this.cloud.position.z = (Math.random() * 30) - 15; + this.cloud.updateInstance('position'); this.clouds.push(cloud); @@ -130,7 +132,7 @@ GameLib.CustomCode.prototype.advanceClouds = function(delta) { this.cloudTime += diff; - if (this.cloudTime > 2) { + if (this.cloudTime > 4) { this.spawnCloud(); this.cloudTime = 0; }