Update: CC - SnailRunner - Before Render (94xi7aitax.js) 8 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 15:06:10 +01:00
parent af90a428f1
commit 51bb8d2a64
1 changed files with 2 additions and 4 deletions

View File

@ -13,8 +13,6 @@ if (!this.initialized) {
this.snail = this.entityLoaded.snail; this.snail = this.entityLoaded.snail;
this.time = 0; this.time = 0;
this.speed = 0;
this.clouds = []; this.clouds = [];
@ -32,7 +30,7 @@ if (!this.initialized) {
this.initialized = true; this.initialized = true;
} }
var diff = data.delta * this.speed; var diff = data.delta * this.entityLoaded.speed;
var cloudInfo = this.clouds.reduce( var cloudInfo = this.clouds.reduce(
function(result, cloud) { function(result, cloud) {
@ -104,7 +102,7 @@ if (modified) {
this.camera.updateInstance('lookAt'); this.camera.updateInstance('lookAt');
} }
this.time += data.delta * this.speed; this.time += data.delta * this.entityLoaded.speed;
if (this.time > 0.5) { if (this.time > 0.5) {
this.spawnCloud(); this.spawnCloud();