aboutsummaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'player.h')
-rw-r--r--player.h7
1 files changed, 6 insertions, 1 deletions
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