From c65787ebfc5f0701bb4366ef22cddc8af2d243ee Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 25 Jul 2025 01:57:49 -0600 Subject: More tree things --- src/world.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/world.h') 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 ): -- cgit v1.2.3