diff options
author | nathan <nathansmith@disroot.org> | 2025-07-25 07:57:49 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-25 07:57:49 +0000 |
commit | c65787ebfc5f0701bb4366ef22cddc8af2d243ee (patch) | |
tree | 4de559bb7a77994c6e39adffb95edeeeb3d3a07a /src/world.h | |
parent | f96ad3c93b9a5a74d2af2e9b8b4835a672a9875b (diff) | |
download | FindThings-c65787ebfc5f0701bb4366ef22cddc8af2d243ee.tar.gz FindThings-c65787ebfc5f0701bb4366ef22cddc8af2d243ee.tar.bz2 FindThings-c65787ebfc5f0701bb4366ef22cddc8af2d243ee.zip |
More tree things
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/world.h b/src/world.h index 3c18e9f..c255e17 100644 --- a/src/world.h +++ b/src/world.h @@ -9,14 +9,16 @@ #define BVH_MAX_BRANCH_COUNT 8 #define BVH_BOX_MAX 100.0 -#define WORLD_ENTITY_MAX 1000 +#define WORLD_ENTITY_MAX 1500 #define WORLD_SIZE (Vector3){1000.0, 100.0, 1000.0} #define WORLD_IMAGE_WIDTH 100 #define WORLD_IMAGE_HEIGHT 100 #define WORLD_IMAGE_SCALE 5.0 +#define WORLD_TREE_COUNT 500 // UID for anything in the world. typedef int16_t WorldUID; +typedef int Seed; typedef struct BVHNode { BoundingBox box; @@ -36,7 +38,7 @@ typedef struct { int bvhDebugSelect; } World; -World createWorld(int seed); +World createWorld(Seed seed); void updateWorld(World* world, Game* game); void freeWorld(World world); // Dam, I wanta live in a free world ): |