Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 1490 bytes modified

beta.r3js.org
-=yb4f310 2017-11-27 14:51:18 +01:00
parent 55d34d5a6e
commit e4b9c8e30c
1 changed files with 155 additions and 97 deletions

View File

@ -1,21 +1,22 @@
if (this.parentEntity === data.entity) {
console.log('my entity loaded :)');
console.log('my entity loaded :)');
} else {
return;
return;
}
this.enemies = [];
/**
* Min and max spawn time is in seconds
*/
* Min and max spawn time is in seconds
*/
GameLib.D3.CustomCode.MIN_SPAWN_TIME = 1;
GameLib.D3.CustomCode.MAX_SPAWN_TIME = 4;
GameLib.D3.CustomCode.OBJECT_BUFFER_SIZE = 5;
/**
* Create references to all our 'in game' objects
*/
* Create references to all our 'in game' objects
*/
this.fog = GameLib.EntityManager.Instance.findComponentById('zq8861jzb4')
this.bull = GameLib.EntityManager.Instance.findComponentById('cpcuzjjx27');
this.star = GameLib.EntityManager.Instance.findComponentById('lc7boe8lul');
@ -53,11 +54,11 @@ this.materialTreesAndRocks = GameLib.EntityManager.Instance.findComponentById('g
this.burningTreeParticleEngine = GameLib.EntityManager.Instance.findComponentById('jdn84unl9b');
GameLib.Event.Emit(
GameLib.Event.GET_GRAPHICS_IMPLEMENTATION,
null,
function(graphics) {
this.graphics = graphics
}.bind(this)
GameLib.Event.GET_GRAPHICS_IMPLEMENTATION,
null,
function(graphics) {
this.graphics = graphics
}.bind(this)
);
this.mouse = new GameLib.Mouse(this.graphics);
@ -70,49 +71,49 @@ this.mouseMove = GameLib.EntityManager.Instance.findComponentById('lxigrx11oc')
this.touchMove = GameLib.EntityManager.Instance.findComponentById('evwkow5289');
GameLib.Event.Subscribe(
GameLib.Event.WINDOW_RESIZE,
function(data) {
var aspect = (data.width / data.height);
this.camera.aspect = aspect;
this.camera.updateInstance('aspect');
this.renderer.setSize(
data.width,
data.height
);
}.bind(this)
GameLib.Event.WINDOW_RESIZE,
function(data) {
var aspect = (data.width / data.height);
this.camera.aspect = aspect;
this.camera.updateInstance('aspect');
this.renderer.setSize(
data.width,
data.height
);
}.bind(this)
);
/**
* Tell all our custom code components that we loaded
*/
* Tell all our custom code components that we loaded
*/
GameLib.Event.Subscribe(
GameLib.Event.CUSTOM_GAME_START,
function() {
GameLib.Event.CUSTOM_GAME_START,
function() {
delete this.beforeRender.initialized;
delete this.beforeRender.initialized;
this.beforeRender.entityLoaded = this;
this.mouseUp.entityLoaded = this;
this.mouseDown.entityLoaded = this;
this.mouseMove.entityLoaded = this;
this.touchMove.entityLoaded = this;
this.beforeRender.entityLoaded = this;
this.mouseUp.entityLoaded = this;
this.mouseDown.entityLoaded = this;
this.mouseMove.entityLoaded = this;
this.touchMove.entityLoaded = this;
GameLib.Event.Emit(GameLib.Event.WINDOW_RESIZE, {width : window.innerWidth, height:window.innerHeight});
GameLib.Event.Emit(GameLib.Event.WINDOW_RESIZE, {width : window.innerWidth, height:window.innerHeight});
this.camera.lookAt.x = 0;
this.camera.lookAt.y = 0;
this.camera.lookAt.z = 0;
this.camera.updateInstance('lookAt');
this.camera.lookAt.x = 0;
this.camera.lookAt.y = 0;
this.camera.lookAt.z = 0;
this.camera.updateInstance('lookAt');
this.mouse.x = 0;
this.mouse.y = 0;
this.mouse.x = 0;
this.mouse.y = 0;
}.bind(this)
}.bind(this)
);
/**
* Plant all our trees - Below code gets generated automatically
*/
* Plant all our trees - Below code gets generated automatically
*/
var treeSmall = this.treeSmall;
var treeMedium = this.treeMedium;
var treeLarge = this.treeLarge;
@ -202,6 +203,7 @@ mesh.scale.z = 10;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -223,6 +225,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -244,6 +247,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -265,6 +269,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -286,6 +291,7 @@ mesh.scale.z = 5.43;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -307,6 +313,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -328,6 +335,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -349,6 +357,7 @@ mesh.scale.z = 8;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -370,6 +379,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -391,6 +401,7 @@ mesh.scale.z = 8;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -412,6 +423,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -433,6 +445,7 @@ mesh.scale.z = 15;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -454,6 +467,7 @@ mesh.scale.z = 9;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -475,6 +489,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -496,6 +511,7 @@ mesh.scale.z = 7;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -517,6 +533,7 @@ mesh.scale.z = 10;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -538,6 +555,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -559,6 +577,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -580,6 +599,7 @@ mesh.scale.z = 7;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -601,6 +621,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -622,6 +643,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -643,6 +665,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -664,6 +687,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -685,6 +709,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -706,6 +731,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -727,6 +753,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -748,6 +775,7 @@ mesh.scale.z = 8.790000000000001;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -769,6 +797,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -790,6 +819,7 @@ mesh.scale.z = 10.26;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -811,6 +841,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -832,6 +863,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -853,6 +885,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -874,6 +907,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -895,6 +929,7 @@ mesh.scale.z = 3;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -916,6 +951,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -937,6 +973,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -958,6 +995,7 @@ mesh.scale.z = 7.32;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -979,6 +1017,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1000,6 +1039,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1021,6 +1061,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1042,6 +1083,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1063,6 +1105,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1084,6 +1127,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1105,6 +1149,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1126,6 +1171,7 @@ mesh.scale.z = 8;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1147,6 +1193,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1168,6 +1215,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1189,6 +1237,7 @@ mesh.scale.z = 8;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1210,6 +1259,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1231,6 +1281,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1252,6 +1303,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1273,6 +1325,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1294,6 +1347,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1315,6 +1369,7 @@ mesh.scale.z = 10.99;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1336,6 +1391,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1357,6 +1413,7 @@ mesh.scale.z = 5;
mesh.updateInstance('materials');
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.position.y += mesh.dimensions.y + 5;
@ -1366,3 +1423,4 @@ mesh.burningTreeParticleEngine = burningTreeParticleEngine;
GameLib.Event.Emit(GameLib.Event.GAME_LOADED);
//@ sourceURL=entityLoaded.js