From 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 09:02:04 +1000 Subject: Menus, game over, dying, etc. --- player.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player.h') diff --git a/player.h b/player.h index da1605e..0e84b9e 100644 --- a/player.h +++ b/player.h @@ -9,9 +9,11 @@ typedef struct { int ldx, ldy; int shoot_cooldown; int shoot_countdown; + int hp; } Player; void init_player(Player* player, struct World* world); void update_player(Player* player, struct World* world); +void player_take_damage(Player* player, int dmg); #endif -- cgit v1.2.3-54-g00ecf