diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-22 22:45:05 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-22 22:45:05 +0100 |
commit | 5733a241a6e35dd539231c569bb54b7f1cb1e758 (patch) | |
tree | fc7680c8f0e4dd3a90d3fd30109e515872fbcec9 /src/game.c | |
parent | 4a8127146eafd4fef5b478c1bf9f5a152c8c4cd5 (diff) | |
download | gold-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -122,3 +122,10 @@ uint32_t get_hiscore() { return hiscore; } + +uint8_t dec_lives() +{ + lives--; + hud |= HUD_LIVES; + return lives; +} |