fun: happy little trees

This commit is contained in:
cha0s 2021-03-20 10:48:41 -05:00
parent 2ce7c6e94d
commit 7897de81c5

View File

@ -119,7 +119,7 @@ export default (latus) => class Universe extends JsonResource {
Vector.add([8, 8], Vector.scale([x, y], 16)),
[Math.random() * 8 - 4, Math.random() * 8 - 4],
)));
// room.addEntityToLayer(shrub, 1);
room.addEntityToLayer(shrub, 1);
}
else if (v < 0.17) {
// eslint-disable-next-line no-await-in-loop
@ -131,7 +131,7 @@ export default (latus) => class Universe extends JsonResource {
Vector.add([8, 8], p),
[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;
if (v < 0.08) {
@ -141,7 +141,7 @@ export default (latus) => class Universe extends JsonResource {
Vector.add([8, 8], Vector.scale([x, y], 16)),
[Math.random() * 8 - 4, Math.random() * 8 - 4],
)));
// room.addEntityToLayer(flower, 1);
room.addEntityToLayer(flower, 1);
}
}