summaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'world.h')
-rw-r--r--world.h21
1 files changed, 21 insertions, 0 deletions
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 <raylib.h>
+#include "assets.h"
+#include <stddef.h>
+
+#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
+