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

beta.r3js.org
-=yb4f310 2017-11-27 20:37:38 +01:00
parent 3f6e6b55d6
commit 4a4e196c06
1 changed files with 18 additions and 17 deletions

View File

@ -509,24 +509,20 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
event: 'enemyExploded' event: 'enemyExploded'
} }
); );
}
this.score += mesh.enemy.score; this.score += mesh.enemy.score;
this.drawScore(mesh.enemy); this.drawScore(mesh.enemy);
console.log('score : ' + this.score); console.log('score : ' + this.score);
GameLib.Event.Emit( GameLib.Event.Emit(
GameLib.Event.GAME_DATA, GameLib.Event.GAME_DATA,
{ {
event: 'scoreUpdate', event: 'scoreUpdate',
score: this.score score: this.score
} }
); );
if (this.score > this.kanisterSpawnScore) {
this.spawnEnemy(true);
} }
this.explodeMesh(mesh); this.explodeMesh(mesh);
@ -911,12 +907,12 @@ this.enemies = this.enemies.reduce(
if (enemy.burning) { if (enemy.burning) {
/*if (!enemy.exploding) { if (!enemy.exploding) {
enemy.burnTime += data.delta; enemy.burnTime += data.delta;
if (enemy.burnTime > enemy.burnLife) { if (enemy.burnTime > enemy.burnLife) {
this.explode(enemy.mesh); this.explode(enemy.mesh);
} }
}*/ }
if (enemy.mesh.smokeParticleEngine) { if (enemy.mesh.smokeParticleEngine) {
enemy.mesh.smokeParticleEngine.position.x = enemy.mesh.position.x; enemy.mesh.smokeParticleEngine.position.x = enemy.mesh.position.x;
@ -943,4 +939,9 @@ this.enemies = this.enemies.reduce(
[] []
); );
return null;//# sourceURL=beforeRender.js if (this.score > this.kanisterSpawnScore) {
this.spawnEnemy(true);
}
return null;
//# sourceURL=beforeRender.js