aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/world.h b/src/world.h
index e06d628..d5c1a46 100644
--- a/src/world.h
+++ b/src/world.h
@@ -11,6 +11,10 @@
#define BVH_MAX 4
#define WORLD_ENTITY_MAX 1000
+#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
// UID for anything in the world.x
typedef int16_t WorldUID;
@@ -28,9 +32,10 @@ typedef struct {
Model heightmap;
Entity entities[WORLD_ENTITY_MAX];
BVHNode bvh;
+ BVHNode bvhTest[250];
} World;
-World createWorld(const Assets* assets);
+World createWorld(int seed);
void updateWorld(World* world, Game* game);
void freeWorld(World world);
// Dam, I wanta live in a free world ):