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');