diff options
author | nathan <nathansmith@disroot.org> | 2025-08-25 14:51:32 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-08-25 14:51:32 +0000 |
commit | 459aca4f1fe506340bc6238f8da39f494bb45352 (patch) | |
tree | e94ab943627158d531d0f29eaa332d035a48b92a | |
parent | 6b394e9429c26b2c0a3a2f19ce48b16d57fa098e (diff) | |
download | FindThings-459aca4f1fe506340bc6238f8da39f494bb45352.tar.gz FindThings-459aca4f1fe506340bc6238f8da39f494bb45352.tar.bz2 FindThings-459aca4f1fe506340bc6238f8da39f494bb45352.zip |
Lazy day (:
-rw-r--r-- | src/entity.c | 9 | ||||
-rw-r--r-- | src/entity.h | 8 | ||||
-rw-r--r-- | src/world.c | 6 |
3 files changed, 21 insertions, 2 deletions
diff --git a/src/entity.c b/src/entity.c index 0fb784e..711a701 100644 --- a/src/entity.c +++ b/src/entity.c @@ -49,6 +49,15 @@ Entity createEntity(EntityId id, Vector3 position) }; break; + case SAMANTHAS_SPOT: + entity.box = (BoundingBox){ + .min = (Vector3){-SAMANTHAS_SPOT_SIZE, -SAMANTHAS_SPOT_HEIGHT, + -SAMANTHAS_SPOT_SIZE}, + .max = (Vector3){SAMANTHAS_SPOT_SIZE, SAMANTHAS_SPOT_HEIGHT, + SAMANTHAS_SPOT_SIZE} + }; + + break; default: break; } diff --git a/src/entity.h b/src/entity.h index 68caf64..4f673f9 100644 --- a/src/entity.h +++ b/src/entity.h @@ -5,7 +5,7 @@ #ifndef ENTITY_H #define ENTITY_H -#define ENTITY_COUNT 7 +#define ENTITY_COUNT 8 #define TREE_SCALE 40.0 #define BUSH_SCALE 8.0 @@ -17,6 +17,9 @@ #define UTILITY_POLE_HEIGHT 100.0 #define UTILITY_POLE_RADIUS 3.0 +#define SAMANTHAS_SPOT_SIZE 20.0 +#define SAMANTHAS_SPOT_HEIGHT 5.0 + typedef int8_t EntityId; enum { @@ -27,7 +30,8 @@ enum { BUSH, FLOWER, POND, - UTILITY_POLE + UTILITY_POLE, + SAMANTHAS_SPOT }; typedef struct { diff --git a/src/world.c b/src/world.c index 0217fd7..bf486e3 100644 --- a/src/world.c +++ b/src/world.c @@ -452,6 +452,12 @@ Seed generatePond(World* world, Color* heightmap, WorldUID id, Seed seed) return seed; } +// TODO: get this mother fucker done in a sane amount of time +Seed generateWorldSamanthasPlace(World* world, Seed seed, int spotIndex) +{ + return seed; +} + Seed generateWorldPlants(World* world, Seed seed, int start, int end) { for (int index = start; index < end; ++index) |