added lives
This commit is contained in:
6
types.h
6
types.h
@@ -8,7 +8,11 @@
|
||||
#include "raylib.h"
|
||||
|
||||
struct Player : Rectangle {
|
||||
uint8_t lives;
|
||||
double last_hit;
|
||||
[[nodiscard]] Vector2 center() const noexcept;
|
||||
[[nodiscard]] Rectangle rect() const noexcept;
|
||||
[[nodiscard]] bool is_invulnerable(double now) const noexcept;
|
||||
|
||||
void move(float delta_x, float delta_y);
|
||||
};
|
||||
@@ -34,6 +38,6 @@ struct Tear {
|
||||
struct Enemy {
|
||||
Vector2 center;
|
||||
float radius;
|
||||
Vector2 moving;
|
||||
float speed;
|
||||
bool alive;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user