aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-22 22:45:05 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-22 22:45:05 +0100
commit5733a241a6e35dd539231c569bb54b7f1cb1e758 (patch)
treefc7680c8f0e4dd3a90d3fd30109e515872fbcec9 /src/game.c
parent4a8127146eafd4fef5b478c1bf9f5a152c8c4cd5 (diff)
downloadgold-mine-run-5733a241a6e35dd539231c569bb54b7f1cb1e758.tar.gz
gold-mine-run-5733a241a6e35dd539231c569bb54b7f1cb1e758.zip
Player damage, invulnerability, death sequence and respawn
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 ddd9e63..76969ae 100644
--- a/src/game.c
+++ b/src/game.c
@@ -122,3 +122,10 @@ uint32_t get_hiscore()
{
return hiscore;
}
+
+uint8_t dec_lives()
+{
+ lives--;
+ hud |= HUD_LIVES;
+ return lives;
+}