Update: CC - SnailRunner - Before Render (94xi7aitax.js) 331 bytes modified
parent
8506c64d04
commit
e1f15559e5
|
@ -2,40 +2,18 @@ if (!this.entityLoaded) {
|
|||
return;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
|
||||
|
||||
if (!this.initialized) {
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
var diff = data.delta * this.entityLoaded.speed;
|
||||
this.advanceClouds(data.delta);
|
||||
|
||||
this.advanceClouds(diff);
|
||||
|
||||
this.advanceRoadSections(diff);
|
||||
|
||||
this.advanceCamera(data.delta);
|
||||
|
||||
this.time += diff;
|
||||
|
||||
if (this.time > 0.5) {
|
||||
this.spawnCloud();
|
||||
this.time = 0;
|
||||
}
|
||||
this.advanceRoadSections(data.delta);
|
||||
|
||||
this.adjustSpeed(data.delta);
|
||||
|
||||
this.adjustSnailPosition(data.delta);
|
||||
|
||||
//this.adjustCamera(data.delta);
|
||||
|
||||
//@ sourceURL=beforeRender.js
|
Loading…
Reference in New Issue