Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 59 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 19:00:49 +01:00
parent 1f6d57df8c
commit 97f9c2e459
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}