aboutsummaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-15 21:41:09 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-15 21:41:09 +0100
commit18080fdf599adbf13a643fc450cd3fe42c871cb0 (patch)
treeaac778a674c52ec2ccae7c43af64424e76cd0970 /src/map.h
parent8d1cfe3e409afd388ff68fc776677fc961e5446c (diff)
downloadgold-mine-run-18080fdf599adbf13a643fc450cd3fe42c871cb0.tar.gz
gold-mine-run-18080fdf599adbf13a643fc450cd3fe42c871cb0.zip
Add map collision detection functions
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 7c08fe5..f36d294 100644
--- a/src/map.h
+++ b/src/map.h
@@ -11,7 +11,13 @@
#define MAP_TILESET_COLS 20
+#define MAP_FIRST_BLOCKED 40
+#define MAP_FIRST_DEADLY 100
+
void map_init(const uint8_t map[]);
void map_render();
+uint8_t map_is_blocked(uint16_t x, uint16_t y);
+uint8_t map_is_deadly(uint16_t x, uint16_t y);
+
#endif /* _MAP_H */