Update: CC - Before Render - Moorcow (72d6a2a3kc.js) 271 bytes modified
parent
d11bd2c884
commit
19190c6351
|
@ -6,6 +6,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
|
|
||||||
|
this.fog = this.entityLoaded.fog;
|
||||||
this.bull = this.entityLoaded.bull;
|
this.bull = this.entityLoaded.bull;
|
||||||
this.star = this.entityLoaded.star;
|
this.star = this.entityLoaded.star;
|
||||||
this.burger = this.entityLoaded.burger;
|
this.burger = this.entityLoaded.burger;
|
||||||
|
@ -169,6 +170,12 @@ this.spawnTime += data.delta;
|
||||||
|
|
||||||
if (this.mouseIsDown) {
|
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;
|
this.renderer.clearColor.r += 0.01;
|
||||||
if (this.renderer.clearColor.r > 1) {
|
if (this.renderer.clearColor.r > 1) {
|
||||||
this.renderer.clearColor.r = 1;
|
this.renderer.clearColor.r = 1;
|
||||||
|
@ -215,6 +222,12 @@ if (this.mouseIsDown) {
|
||||||
this.renderer.clearColor.r = 0;
|
this.renderer.clearColor.r = 0;
|
||||||
}
|
}
|
||||||
this.renderer.updateInstance('clearColor');
|
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) {
|
if (this.spawnTime > this.nextSpawnTime) {
|
||||||
|
|
Loading…
Reference in New Issue