Update: CC - Before Render - Moorcow (qemp4een6t.js) 604 bytes modified
parent
bfd48c12bb
commit
5a30d7898b
|
@ -46,8 +46,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
this.meshes = this.entityLoaded.meshes;
|
||||
this.raycaster = this.entityLoaded.raycaster;
|
||||
this.kanister = this.entityLoaded.kanister;
|
||||
this.leftLight = this.entityLoaded.leftLight;
|
||||
this.rightLight = this.entityLoaded.rightLight;
|
||||
this.lightDirectional = this.entityLoaded.lightDirectional;
|
||||
this.scoreCanvas = this.entityLoaded.scoreCanvas;
|
||||
this.scoreTexture = this.entityLoaded.scoreTexture;
|
||||
this.scoreMesh = this.entityLoaded.scoreMesh;
|
||||
|
@ -162,19 +161,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
|
||||
this.enemiesSpawned = 0;
|
||||
|
||||
|
||||
this.leftLight.intensity = 0.3;
|
||||
this.leftLight.updateInstance('intensity');
|
||||
this.rightLight.intensity = 0.3;
|
||||
this.rightLight.updateInstance('intensity');
|
||||
|
||||
GameLib.Event.Emit(
|
||||
GameLib.Event.GET_GRAPHICS_IMPLEMENTATION,
|
||||
null,
|
||||
function (graphics) {
|
||||
this.graphics = graphics
|
||||
}.bind(this)
|
||||
);
|
||||
this.lightDirectional.intensity = 0;
|
||||
this.lightDirectional.updateInstance('intensity');
|
||||
|
||||
this.setLevelProperties = function () {
|
||||
|
||||
|
@ -625,26 +613,14 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
|
||||
this.minimumRendererRed += 0.01;
|
||||
|
||||
if (mesh.position.x < 0) {
|
||||
this.leftLight.intensity += data.delta * 2.5;
|
||||
|
||||
if (this.leftLight.intensity >= 1) {
|
||||
this.leftLight.intensity = 1;
|
||||
}
|
||||
|
||||
this.leftLight.updateInstance('intensity');
|
||||
|
||||
} else {
|
||||
this.rightLight.intensity += data.delta * 2.5;
|
||||
|
||||
if (this.rightLight.intensity >= 1) {
|
||||
this.rightLight.intensity = 1;
|
||||
}
|
||||
|
||||
this.rightLight.updateInstance('intensity');
|
||||
this.lightDirectional.intensity += 0.1;
|
||||
|
||||
if (this.lightDirectional.intensity >= 1.4) {
|
||||
this.lightDirectional.intensity = 1.4;
|
||||
}
|
||||
|
||||
this.lightDirectional.updateInstance('intensity');
|
||||
|
||||
mesh.burningTreeParticleEngine.enabled = true;
|
||||
|
||||
GameLib.Event.Emit(
|
||||
|
|
Loading…
Reference in New Issue