From e861181c37b8284b3a89c7bdac19ee6ed3a738f3 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 7 Mar 2018 06:45:43 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (qemp4een6t.js) 364 bytes modified --- qemp4een6t.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/qemp4een6t.js b/qemp4een6t.js index fab6005..e2cf4fd 100644 --- a/qemp4een6t.js +++ b/qemp4een6t.js @@ -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');