aboutsummaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
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