Update: CC - Before Render - Moorcow (qemp4een6t.js) 364 bytes modified
parent
b6fe6932df
commit
e861181c37
|
@ -47,6 +47,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.raycaster = this.entityLoaded.raycaster;
|
this.raycaster = this.entityLoaded.raycaster;
|
||||||
this.kanister = this.entityLoaded.kanister;
|
this.kanister = this.entityLoaded.kanister;
|
||||||
this.lightDirectional = this.entityLoaded.lightDirectional;
|
this.lightDirectional = this.entityLoaded.lightDirectional;
|
||||||
|
this.lightAmbient = this.entityLoaded.lightAmbient;
|
||||||
this.scoreCanvas = this.entityLoaded.scoreCanvas;
|
this.scoreCanvas = this.entityLoaded.scoreCanvas;
|
||||||
this.scoreTexture = this.entityLoaded.scoreTexture;
|
this.scoreTexture = this.entityLoaded.scoreTexture;
|
||||||
this.scoreMesh = this.entityLoaded.scoreMesh;
|
this.scoreMesh = this.entityLoaded.scoreMesh;
|
||||||
|
@ -164,6 +165,9 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.lightDirectional.intensity = 0;
|
this.lightDirectional.intensity = 0;
|
||||||
this.lightDirectional.updateInstance('intensity');
|
this.lightDirectional.updateInstance('intensity');
|
||||||
|
|
||||||
|
this.lightAmbient.intensity = 0;
|
||||||
|
this.lightAmbient.updateInstance('intensity');
|
||||||
|
|
||||||
this.setLevelProperties = function () {
|
this.setLevelProperties = function () {
|
||||||
|
|
||||||
this.prevLevel = this.level;
|
this.prevLevel = this.level;
|
||||||
|
@ -614,13 +618,17 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.minimumRendererRed += 0.01;
|
this.minimumRendererRed += 0.01;
|
||||||
|
|
||||||
this.lightDirectional.intensity += 0.1;
|
this.lightDirectional.intensity += 0.1;
|
||||||
|
|
||||||
if (this.lightDirectional.intensity >= 1.4) {
|
if (this.lightDirectional.intensity >= 1.4) {
|
||||||
this.lightDirectional.intensity = 1.4;
|
this.lightDirectional.intensity = 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.lightDirectional.updateInstance('intensity');
|
this.lightDirectional.updateInstance('intensity');
|
||||||
|
|
||||||
|
this.lightAmbient.intensity += 0.1;
|
||||||
|
if (this.lightAmbient.intensity >= 1.4) {
|
||||||
|
this.lightAmbient.intensity = 1.4;
|
||||||
|
}
|
||||||
|
this.lightAmbient.updateInstance('intensity');
|
||||||
|
|
||||||
mesh.burningTreeParticleEngine.enabled = true;
|
mesh.burningTreeParticleEngine.enabled = true;
|
||||||
|
|
||||||
GameLib.Event.Emit(
|
GameLib.Event.Emit(
|
||||||
|
@ -662,8 +670,8 @@ if (this.mouseIsDown) {
|
||||||
this.kanisterTime += data.delta * 1.125;
|
this.kanisterTime += data.delta * 1.125;
|
||||||
|
|
||||||
this.throwerLight.intensity += 0.05;
|
this.throwerLight.intensity += 0.05;
|
||||||
if (this.throwerLight.intensity > 2) {
|
if (this.throwerLight.intensity > 2.5) {
|
||||||
this.throwerLight.intensity = 2;
|
this.throwerLight.intensity = 2.5;
|
||||||
}
|
}
|
||||||
this.throwerLight.updateInstance('intensity');
|
this.throwerLight.updateInstance('intensity');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue