Update: CC - Before Render - Moorcow (72d6a2a3kc.js) 271 bytes modified

beta.r3js.org
-=yb4f310 2017-11-14 09:19:57 +01:00
parent d11bd2c884
commit 19190c6351
1 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.initialized = true;
this.fog = this.entityLoaded.fog;
this.bull = this.entityLoaded.bull;
this.star = this.entityLoaded.star;
this.burger = this.entityLoaded.burger;
@ -169,6 +170,12 @@ this.spawnTime += data.delta;
if (this.mouseIsDown) {
this.fog.color += 0.01;
if (this.fog.color.r > 1) {
this.fog.color.r = 1;
}
this.fog.updateInstance('color');
this.renderer.clearColor.r += 0.01;
if (this.renderer.clearColor.r > 1) {
this.renderer.clearColor.r = 1;
@ -215,6 +222,12 @@ if (this.mouseIsDown) {
this.renderer.clearColor.r = 0;
}
this.renderer.updateInstance('clearColor');
this.fog.color -= 0.01;
if (this.fog.color.r < 0) {
this.fog.color.r = 0;
}
this.fog.updateInstance('color');
}
if (this.spawnTime > this.nextSpawnTime) {