aboutsummaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-13 23:29:50 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-13 23:29:50 +0100
commit04af7fbd7891b4be883be8231d8fc0ae11a763e7 (patch)
treedadb4bd75c59335ba68ec157bea8d3460351fa8b /src/map.h
parentd6cff5d9a6056a4cd727f3e9dd6301a78169d246 (diff)
downloadgold-mine-run-04af7fbd7891b4be883be8231d8fc0ae11a763e7.tar.gz
gold-mine-run-04af7fbd7891b4be883be8231d8fc0ae11a763e7.zip
Map renderer
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
new file mode 100644
index 0000000..7c08fe5
--- /dev/null
+++ b/src/map.h
@@ -0,0 +1,17 @@
+#ifndef _MAP_H
+#define _MAP_H
+
+#define MAP_TILE_W 8
+#define MAP_TILE_H 8
+
+#define MAP_W 40
+#define MAP_H 23
+
+#define MAP_OFFS_Y 16
+
+#define MAP_TILESET_COLS 20
+
+void map_init(const uint8_t map[]);
+void map_render();
+
+#endif /* _MAP_H */