aboutsummaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 09:02:04 +1000
committerquou <quou@disroot.org>2023-05-06 09:02:04 +1000
commit2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch)
treee608ebd0bea71570be0a3619f9848f975669e5ef /player.h
parentfb104368dd33b66e0575dcc0327cbae7046a4e1e (diff)
Menus, game over, dying, etc.
Diffstat (limited to 'player.h')
-rw-r--r--player.h2
1 files changed, 2 insertions, 0 deletions
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