diff options
author | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
commit | 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch) | |
tree | e608ebd0bea71570be0a3619f9848f975669e5ef /player.h | |
parent | fb104368dd33b66e0575dcc0327cbae7046a4e1e (diff) |
Menus, game over, dying, etc.
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |