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

beta.r3js.org
-=yb4f310 2018-03-09 18:42:03 +01:00
parent e1f15559e5
commit 0a997f9dc6
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ GameLib.CustomCode.prototype.spawnCloud = function() {
var cloud = this.cloud.clone();
this.cloud.position.x = -155;
this.cloud.position.z = (Math.random() * 25) - 12.5;
this.cloud.position.z = Math.sin(this.speedPercentage) * 5;
this.cloud.updateInstance('position');
this.clouds.push(cloud);
@ -129,7 +129,7 @@ GameLib.CustomCode.prototype.advanceClouds = function(delta) {
this.cloudTime += diff;
if (this.cloudTime > 1) {
if (this.cloudTime > 2) {
this.spawnCloud();
this.cloudTime = 0;
}