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

beta.r3js.org
-=yb4f310 2018-03-07 08:14:48 +01:00
parent e5183f21a7
commit 6b71a16183
1 changed files with 7 additions and 5 deletions

View File

@ -1429,24 +1429,26 @@ burningTreeParticleEngine.updateInstance('position');
this.treeLarge.burningTreeParticleEngine = burningTreeParticleEngine;
var type = 0;
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) {
type++;
if (type === 1) {
mesh = treeSmall.clone();
mesh.position.y = -14.19;
}
if (random === 2) {
if (type === 2) {
mesh = treeMedium.clone();
mesh.position.y = -10.26;
}
if (random === 3) {
if (type === 3) {
mesh = treeLarge.clone();
mesh.position.y = -4.43;
type = 1;
}
material = materialTreesAndRocks.clone();