Update: CC - SnailRunner - Before Render (94xi7aitax.js) 331 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 18:39:04 +01:00
parent 8506c64d04
commit e1f15559e5
1 changed files with 5 additions and 27 deletions

View File

@ -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