From 9e3eafcb8b948eebfd189323138415ba672cdaa5 Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 20 Sep 2025 15:35:16 -0600 Subject: Trash yippee! --- src/world.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/world.c') 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) -- cgit v1.2.3