aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-27 23:18:22 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-27 23:18:22 +0100
commit399e039d799186aeacebee60e1c2009a46677c0d (patch)
tree6b0d2dc98f86e7aecea073e40c35cd21ee6314f3 /src/game.c
parentcb51a0b3973399c4adfb1406b93cd8a25e2f726c (diff)
downloadgold-mine-run-399e039d799186aeacebee60e1c2009a46677c0d.tar.gz
gold-mine-run-399e039d799186aeacebee60e1c2009a46677c0d.zip
Add pikcups
WIP: only time and bonuses for now.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 001ce21..70b1e74 100644
--- a/src/game.c
+++ b/src/game.c
@@ -184,3 +184,10 @@ uint8_t dec_lives()
hud |= HUD_LIVES;
return lives;
}
+
+void reset_time()
+{
+ time = GAME_TIME_MAX;
+ hud |= HUD_TIME;
+ timer_start(GAME_TIME_MAX, &clock_updated);
+}