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(
function(mesh) {
if (mesh.burningTreeParticleEngine) {
mesh.burning = false;
mesh.burningTreeParticleEngine.remove();
mesh.burningTreeParticleEngine = null;
}
@ -448,17 +449,18 @@
*/
} else {
GameLib.Event.Emit(
GameLib.Event.GAME_DATA,
{
event : 'treeBurned'
}
);
mesh.burning = true;
this.treesBurning++;
GameLib.Event.Emit(
GameLib.Event.GAME_DATA,
{
event : 'treeBurned',
treesBurning : this.treesBurning
}
);
this.minimumRendererRed += 0.01;
if (mesh.position.x < 0) {