From 5733a241a6e35dd539231c569bb54b7f1cb1e758 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 22 Jun 2023 22:45:05 +0100 Subject: Player damage, invulnerability, death sequence and respawn --- src/game.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game.c') 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; +} -- cgit v1.2.3