Update: CC - Before Render - Moorcow (autqzs1rvq.js) 2122 bytes modified

beta.r3js.org
-=yb4f310 2017-11-19 17:17:48 +01:00
parent 17b63a9af9
commit 826639cd07
1 changed files with 601 additions and 603 deletions

View File

@ -1,8 +1,8 @@
if (!this.entityLoaded) {
if (!this.entityLoaded) {
return;
}
}
if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.initialized = true;
@ -435,12 +435,12 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
}
this.spawnEnemy();
}
}
this.totalTime += data.delta;
this.spawnTime += data.delta;
this.totalTime += data.delta;
this.spawnTime += data.delta;
this.scene.meshes.map(
this.scene.meshes.map(
function(mesh) {
if (mesh.instance.material instanceof Array) {
mesh.instance.material.map(
@ -456,9 +456,9 @@ this.scene.meshes.map(
}
}
}.bind(this)
);
);
if (this.mouseIsDown) {
if (this.mouseIsDown) {
this.kanisterTime += data.delta;
@ -571,7 +571,7 @@ if (this.mouseIsDown) {
}.bind(this)
);
} else {
} else {
this.renderer.clearColor.r -= 0.01;
if (this.renderer.clearColor.r < this.minimumRendererRed) {
@ -590,14 +590,14 @@ if (this.mouseIsDown) {
this.throwerLight.intensity = 0;
}
this.throwerLight.updateInstance('intensity');
}
}
if (this.spawnTime > this.spawnInterval) {
if (this.spawnTime > this.spawnInterval) {
this.spawnTime = 0;
this.spawnEnemy();
}
}
if (this.kanister.explodeParticleEngine) {
if (this.kanister.explodeParticleEngine) {
if (GameLib.Utils.UndefinedOrNull(this.kanister.waiting)) {
this.kanister.waiting = true;
@ -607,14 +607,14 @@ if (this.kanister.explodeParticleEngine) {
delete this.kanister.waiting;
}
}
}
if (this.kanisterTime > (this.kanisterLife / 2)) {
if (this.kanisterTime > (this.kanisterLife / 2)) {
this.kanister.visible = true;
this.kanister.updateInstance('visible');
}
}
this.enemies = this.enemies.reduce(
this.enemies = this.enemies.reduce(
function(result, enemy) {
if (enemy.exploding === true) {
@ -640,8 +640,6 @@ this.enemies = this.enemies.reduce(
enemy.lifeTime += data.delta;
console.log(enemy.lifeTime);
if (enemy.lifeTime > enemy.life) {
if (!enemy.burning && !enemy.exploding) {
@ -688,7 +686,7 @@ this.enemies = this.enemies.reduce(
}.bind(this),
[]
);
);
return null;
return null;
//# sourceURL=beforeRender.js