diff options
author | nathan <nathansmith@disroot.org> | 2025-09-20 21:35:16 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-09-20 21:35:16 +0000 |
commit | 9e3eafcb8b948eebfd189323138415ba672cdaa5 (patch) | |
tree | 5ca1a79f31163089d9a8131d3e3e6dcab122ece2 /src/world.c | |
parent | 96b7a7205751c76f74d6a5fecb3b5b2ff168b9cd (diff) | |
download | FindThings-9e3eafcb8b948eebfd189323138415ba672cdaa5.tar.gz FindThings-9e3eafcb8b948eebfd189323138415ba672cdaa5.tar.bz2 FindThings-9e3eafcb8b948eebfd189323138415ba672cdaa5.zip |
Trash yippee!
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 15 |
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) |