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

beta.r3js.org
-=yb4f310 2018-03-07 08:13:10 +01:00
parent 8a02d88c27
commit e5183f21a7
1 changed files with 33 additions and 29 deletions

View File

@ -1429,7 +1429,11 @@ burningTreeParticleEngine.updateInstance('position');
this.treeLarge.burningTreeParticleEngine = burningTreeParticleEngine;
for (var x = -200; x < 200; x += 10) {
for (var x = -50; x < 50; x += 10) {
for (var z = -170; z > -230; z -= 10) {
var random = GameLib.Utils.GetRandomIntInclusive(1, 3);
if (random === 1) {
@ -1448,7 +1452,7 @@ for (var x = -200; x < 200; x += 10) {
material = materialTreesAndRocks.clone();
mesh.materials = [material];
mesh.position.x = x;
mesh.position.z = -185 + Math.random() * 10;
mesh.position.z = z;
mesh.rotation.x = 0;
mesh.rotation.y = Math.random() * 3;
mesh.rotation.z = 0;
@ -1459,7 +1463,7 @@ for (var x = -200; x < 200; x += 10) {
mesh.updateInstance('position');
mesh.updateInstance('rotation');
mesh.updateInstance('scale');
}
}
this.treeSmall.visible = false;