From 40eb179043b77f011fb1048c386ee187f64569d0 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 7 May 2023 09:37:45 +1000 Subject: Add waves and some more polish. --- player.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'player.h') diff --git a/player.h b/player.h index 0fb3e4d..86a0426 100644 --- a/player.h +++ b/player.h @@ -10,11 +10,16 @@ typedef struct { int shoot_cooldown; int shoot_countdown; int hp; + int invul, invul_counter; } 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); +void player_take_damage( + struct World* world, + Player* player, + int dmg +); void update_camera(Player* player, struct World* world); #endif -- cgit v1.2.3-54-g00ecf