aboutsummaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-20 23:19:50 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-20 23:24:56 +0100
commit273026bf7e21865ef305af22dc8826be462117f0 (patch)
tree129ec9d103d986dd1aea23395f1dfcf99b3f186d /src/map.h
parentf00ca8c1a2ae1c59854e60b13d3f529ab9e685c5 (diff)
downloadgold-mine-run-273026bf7e21865ef305af22dc8826be462117f0.tar.gz
gold-mine-run-273026bf7e21865ef305af22dc8826be462117f0.zip
Erase collected gold
Although the erase code of the player is likely to clean the gold after being picked up, there could be some left overs in some corner cases, so we let the map erase the gold to ensure it is 100% clean.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 138abcd..9f5a06a 100644
--- a/src/map.h
+++ b/src/map.h
@@ -17,6 +17,9 @@
void map_init(const uint8_t map[]);
void map_render();
+/* for gold */
+void map_erase();
+
uint8_t map_is_blocked(uint16_t x, uint16_t y);
uint8_t map_is_deadly(uint16_t x, uint16_t y);