From 7897de81c5107054d5e28445cc0535e1c00d9b91 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 20 Mar 2021 10:48:41 -0500 Subject: [PATCH] fun: happy little trees --- packages/universe/src/resources/universe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/universe/src/resources/universe.js b/packages/universe/src/resources/universe.js index 5626bb3..3a7a4ba 100644 --- a/packages/universe/src/resources/universe.js +++ b/packages/universe/src/resources/universe.js @@ -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); } }