Update: CC - SnailRunner - Before Render (94xi7aitax.js) 8 bytes modified
parent
af90a428f1
commit
51bb8d2a64
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue