aboutsummaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 09:37:45 +1000
committerquou <quou@disroot.org>2023-05-07 09:37:45 +1000
commit40eb179043b77f011fb1048c386ee187f64569d0 (patch)
treeebae794ec0b3b8851b8c29119ada06555f49d4b6 /player.h
parent47e7976922f5c17505c7c5a3377c3735649e3dcc (diff)
Add waves and some more polish.
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