Update: CC - Before Render - Moorcow (qemp4een6t.js) 364 bytes modified

beta.r3js.org
-=yb4f310 2018-03-07 06:45:43 +01:00
parent b6fe6932df
commit e861181c37
1 changed files with 12 additions and 4 deletions

View File

@ -47,6 +47,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.raycaster = this.entityLoaded.raycaster;
this.kanister = this.entityLoaded.kanister;
this.lightDirectional = this.entityLoaded.lightDirectional;
this.lightAmbient = this.entityLoaded.lightAmbient;
this.scoreCanvas = this.entityLoaded.scoreCanvas;
this.scoreTexture = this.entityLoaded.scoreTexture;
this.scoreMesh = this.entityLoaded.scoreMesh;
@ -164,6 +165,9 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.lightDirectional.intensity = 0;
this.lightDirectional.updateInstance('intensity');
this.lightAmbient.intensity = 0;
this.lightAmbient.updateInstance('intensity');
this.setLevelProperties = function () {
this.prevLevel = this.level;
@ -614,13 +618,17 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.minimumRendererRed += 0.01;
this.lightDirectional.intensity += 0.1;
if (this.lightDirectional.intensity >= 1.4) {
this.lightDirectional.intensity = 1.4;
}
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;
GameLib.Event.Emit(
@ -662,8 +670,8 @@ if (this.mouseIsDown) {
this.kanisterTime += data.delta * 1.125;
this.throwerLight.intensity += 0.05;
if (this.throwerLight.intensity > 2) {
this.throwerLight.intensity = 2;
if (this.throwerLight.intensity > 2.5) {
this.throwerLight.intensity = 2.5;
}
this.throwerLight.updateInstance('intensity');