Update: CC - SnailRunner - Before Render (94xi7aitax.js) 8 bytes modified
parent
af90a428f1
commit
51bb8d2a64
|
@ -14,8 +14,6 @@ if (!this.initialized) {
|
||||||
|
|
||||||
this.time = 0;
|
this.time = 0;
|
||||||
|
|
||||||
this.speed = 0;
|
|
||||||
|
|
||||||
this.clouds = [];
|
this.clouds = [];
|
||||||
|
|
||||||
this.spawnCloud = function() {
|
this.spawnCloud = function() {
|
||||||
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue