From 38df088b80cb6c159eb9941cf6d3c0a8492e65ee Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 22 Apr 2022 19:53:36 +0200 Subject: Added invulnerability timer and death screen --- Player.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Player.h') diff --git a/Player.h b/Player.h index 59e8282..b1cb629 100644 --- a/Player.h +++ b/Player.h @@ -13,7 +13,9 @@ struct Player Player(); void update(float dt); void draw(); - template bool collide(const std::vector& bullets) const; + void hit(); + template bool collide(const std::vector& bullets); + float m_invulnerability; Vector2 m_position; Vector2 m_velocity; std::unique_ptr m_controller; -- cgit v1.1