aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-21 22:47:49 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-21 22:47:49 +0100
commitba2a2dbe3434a1ffc10542ca38e6116c0bde7b65 (patch)
treec97712775a6111b5ffc81bf222a6c03a14f6fc61 /src/game.c
parent03d0053c9531c3f545025654d14541f8a89ce2f7 (diff)
downloadgold-mine-run-ba2a2dbe3434a1ffc10542ca38e6116c0bde7b65.tar.gz
gold-mine-run-ba2a2dbe3434a1ffc10542ca38e6116c0bde7b65.zip
Add hiscore to the menu screen
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index ae7b01e..9878871 100644
--- a/src/game.c
+++ b/src/game.c
@@ -118,3 +118,8 @@ void add_score(uint8_t v)
score += v;
hud |= HUD_SCORE;
}
+
+uint32_t get_hiscore()
+{
+ return hiscore;
+}