diff options
author | quou <quou@disroot.org> | 2023-05-07 09:37:45 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 09:37:45 +1000 |
commit | 40eb179043b77f011fb1048c386ee187f64569d0 (patch) | |
tree | ebae794ec0b3b8851b8c29119ada06555f49d4b6 /player.h | |
parent | 47e7976922f5c17505c7c5a3377c3735649e3dcc (diff) |
Add waves and some more polish.
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |