From 404d0f1bdf95d5951bf2a5e77dca2f9dc18f373e Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 6 Jul 2025 01:54:28 -0600 Subject: Cleaned up shit --- src/world.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/world.h (limited to 'src/world.h') diff --git a/src/world.h b/src/world.h new file mode 100644 index 0000000..d843094 --- /dev/null +++ b/src/world.h @@ -0,0 +1,24 @@ +#include "utils.h" +#include "assets.h" + +// This file is likely completely change. + +#ifndef WORLD_H +#define WORLD_H + +typedef struct { + Vector3 size; + Model heightmap; + const Image* image; + Color* heightmapColors; +} World; + +World createWorld(const Assets* assets); +void updateWorld(World* world, Game* game); +void freeWorld(World world); +// Dam, I wanta live in a free world ): + +float getWorldPixelHeight(World world, int x, int y); +float getWorldHeightAtLocation(World world, int x, int y); + +#endif -- cgit v1.2.3