Update: CC - SnailRunner - Before Render (94xi7aitax.js) 331 bytes modified
parent
8506c64d04
commit
e1f15559e5
|
@ -3,39 +3,17 @@ if (!this.entityLoaded) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
|
|
||||||
/**
|
|
||||||
* Meshes
|
|
||||||
*/
|
|
||||||
this.sections = this.entityLoaded.sections;
|
|
||||||
this.cloud = this.entityLoaded.cloud;
|
|
||||||
this.camera = this.entityLoaded.camera;
|
|
||||||
this.snail = this.entityLoaded.snail;
|
|
||||||
|
|
||||||
this.time = 0;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var diff = data.delta * this.entityLoaded.speed;
|
this.advanceClouds(data.delta);
|
||||||
|
|
||||||
this.advanceClouds(diff);
|
this.advanceRoadSections(data.delta);
|
||||||
|
|
||||||
this.advanceRoadSections(diff);
|
|
||||||
|
|
||||||
this.advanceCamera(data.delta);
|
|
||||||
|
|
||||||
this.time += diff;
|
|
||||||
|
|
||||||
if (this.time > 0.5) {
|
|
||||||
this.spawnCloud();
|
|
||||||
this.time = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.adjustSpeed(data.delta);
|
this.adjustSpeed(data.delta);
|
||||||
|
|
||||||
this.adjustSnailPosition(data.delta);
|
this.adjustSnailPosition(data.delta);
|
||||||
|
|
||||||
|
//this.adjustCamera(data.delta);
|
||||||
|
|
||||||
//@ sourceURL=beforeRender.js
|
//@ sourceURL=beforeRender.js
|
Loading…
Reference in New Issue