aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 74c5fec..0dde09d 100644
--- a/src/world.c
+++ b/src/world.c
@@ -514,6 +514,21 @@ void generateWorldSamanthasPlace(World* world, Color* heightmap,
SAMANTHA_OFFSET));
world->entities[*placeId] = samantha;
*placeId = *placeId + 1;
+
+ // Trash yippee!
+ Vector3 trashcanPosition = (Vector3){-SAMANTHAS_SPOT,
+ 0.0,
+ SAMANTHAS_SPOT_SIZE / 1.5};
+
+ for (int index = 0; index < SAMANTHAS_SPOT_TRASHCAN_COUNT; ++index)
+ {
+ Entity trashcan = createEntity(TRASHCAN,
+ Vector3Add(trashcanPosition, center));
+ world->entities[*placeId] = trashcan;
+ *placeId = *placeId + 1;
+ trashcanPosition.x += (float)(SAMANTHAS_SPOT_SIZE * 2.0)
+ / SAMANTHAS_SPOT_TRASHCAN_COUNT;
+ }
}
Seed generateWorldPlants(World* world, Seed seed, int start, int end)