From 4a4e196c068a1c9ac015bf7db5cc65d546206cee Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 27 Nov 2017 20:37:38 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (qemp4een6t.js) 1 bytes modified --- qemp4een6t.js | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/qemp4een6t.js b/qemp4een6t.js index f1f1233..ac5559f 100644 --- a/qemp4een6t.js +++ b/qemp4een6t.js @@ -509,24 +509,20 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { 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.GAME_DATA, - { - event: 'scoreUpdate', - score: this.score - } - ); - - if (this.score > this.kanisterSpawnScore) { - this.spawnEnemy(true); + GameLib.Event.Emit( + GameLib.Event.GAME_DATA, + { + event: 'scoreUpdate', + score: this.score + } + ); } this.explodeMesh(mesh); @@ -911,12 +907,12 @@ this.enemies = this.enemies.reduce( if (enemy.burning) { - /*if (!enemy.exploding) { + if (!enemy.exploding) { enemy.burnTime += data.delta; if (enemy.burnTime > enemy.burnLife) { this.explode(enemy.mesh); } - }*/ + } if (enemy.mesh.smokeParticleEngine) { enemy.mesh.smokeParticleEngine.position.x = enemy.mesh.position.x; @@ -943,4 +939,9 @@ this.enemies = this.enemies.reduce( [] ); -return null;//# sourceURL=beforeRender.js \ No newline at end of file +if (this.score > this.kanisterSpawnScore) { + this.spawnEnemy(true); +} + +return null; +//# sourceURL=beforeRender.js \ No newline at end of file