From e1f15559e5fa7ebad59b9ef77876d04097d8cccd Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 9 Mar 2018 18:39:04 +0100 Subject: [PATCH] Update: CC - SnailRunner - Before Render (94xi7aitax.js) 331 bytes modified --- 94xi7aitax.js | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/94xi7aitax.js b/94xi7aitax.js index cd3e89b..184ab00 100644 --- a/94xi7aitax.js +++ b/94xi7aitax.js @@ -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 \ No newline at end of file