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

beta.r3js.org
-=yb4f310 2017-11-19 19:20:23 +01:00
parent e0523d47fc
commit 5e2a7b900d
1 changed files with 9 additions and 7 deletions

View File

@ -62,6 +62,7 @@
this.scene.meshes.map( this.scene.meshes.map(
function(mesh) { function(mesh) {
if (mesh.burningTreeParticleEngine) { if (mesh.burningTreeParticleEngine) {
mesh.burning = false;
mesh.burningTreeParticleEngine.remove(); mesh.burningTreeParticleEngine.remove();
mesh.burningTreeParticleEngine = null; mesh.burningTreeParticleEngine = null;
} }
@ -447,18 +448,19 @@
* Do nothing, this tree is burning * Do nothing, this tree is burning
*/ */
} else { } else {
GameLib.Event.Emit(
GameLib.Event.GAME_DATA,
{
event : 'treeBurned'
}
);
mesh.burning = true; mesh.burning = true;
this.treesBurning++; this.treesBurning++;
GameLib.Event.Emit(
GameLib.Event.GAME_DATA,
{
event : 'treeBurned',
treesBurning : this.treesBurning
}
);
this.minimumRendererRed += 0.01; this.minimumRendererRed += 0.01;
if (mesh.position.x < 0) { if (mesh.position.x < 0) {