fun: happy little trees
This commit is contained in:
parent
2ce7c6e94d
commit
7897de81c5
|
@ -119,7 +119,7 @@ export default (latus) => class Universe extends JsonResource {
|
||||||
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
||||||
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
||||||
)));
|
)));
|
||||||
// room.addEntityToLayer(shrub, 1);
|
room.addEntityToLayer(shrub, 1);
|
||||||
}
|
}
|
||||||
else if (v < 0.17) {
|
else if (v < 0.17) {
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
|
@ -131,7 +131,7 @@ export default (latus) => class Universe extends JsonResource {
|
||||||
Vector.add([8, 8], p),
|
Vector.add([8, 8], p),
|
||||||
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
||||||
)));
|
)));
|
||||||
// room.addEntityToLayer(tree, 1);
|
room.addEntityToLayer(tree, 1);
|
||||||
}
|
}
|
||||||
v = (1 + noise(Vector.scale([x, y], 9), seed + 1)) / 2;
|
v = (1 + noise(Vector.scale([x, y], 9), seed + 1)) / 2;
|
||||||
if (v < 0.08) {
|
if (v < 0.08) {
|
||||||
|
@ -141,7 +141,7 @@ export default (latus) => class Universe extends JsonResource {
|
||||||
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
Vector.add([8, 8], Vector.scale([x, y], 16)),
|
||||||
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
[Math.random() * 8 - 4, Math.random() * 8 - 4],
|
||||||
)));
|
)));
|
||||||
// room.addEntityToLayer(flower, 1);
|
room.addEntityToLayer(flower, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user