From 273026bf7e21865ef305af22dc8826be462117f0 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 20 Jul 2023 23:19:50 +0100 Subject: 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. --- src/map.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map.h') 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); -- cgit v1.2.3