summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
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_ */