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