From fe42371c8c5b80b174372de846fafb7590fc3ff1 Mon Sep 17 00:00:00 2001 From: Orangerot Date: Thu, 5 Jun 2025 03:43:25 +0200 Subject: refactor: move terrain generation and drawing to own file --- world.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 world.h (limited to 'world.h') diff --git a/world.h b/world.h new file mode 100644 index 0000000..2740887 --- /dev/null +++ b/world.h @@ -0,0 +1,21 @@ +#include +#include "assets.h" +#include + +#ifndef WORLD_H +#define WORLD_H + +struct World { + Image map; + Texture map_texture; + Color *map_data; + size_t size; + Model floor; + Model wall; + struct Decoration {} decoration[256]; +}; + +void gen_terrain(struct World *world); +void draw_world(struct World *world); +#endif + -- cgit v1.2.3