summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-29 14:43:40 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-29 14:43:40 +0300
commit94e918612723f8d3ef480f158839febf07376a44 (patch)
tree8a3a47817cf5e61aad8e9fa1290e49e8a045fd92 /map.h
parente594307a845ef3928c0bf707d0c3f114b527a767 (diff)
downloadwafflestone-94e918612723f8d3ef480f158839febf07376a44.tar.xz
Add map.h
Diffstat (limited to 'map.h')
-rw-r--r--map.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/map.h b/map.h
new file mode 100644
index 0000000..b724c93
--- /dev/null
+++ b/map.h
@@ -0,0 +1,12 @@
+#ifndef MAP_H_
+#define MAP_H_
+
+#include "framebuffer.h"
+
+/* A structure representing a map. */
+typedef struct Map_s {
+ size_t width, height;
+ Pixel **tiles; /* used as tiles[row][col] or tiles[y][x] */
+} Map;
+
+#endif /* MAP_H_ */