Update: CC - Before Render - Moorcow (autqzs1rvq.js) 71 bytes modified
parent
e0523d47fc
commit
5e2a7b900d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue