give enemies hp

This commit is contained in:
2025-12-02 19:53:44 -05:00
parent 8e89f1bf70
commit eec22cd791
3 changed files with 21 additions and 18 deletions

View File

@@ -49,7 +49,8 @@ struct Enemy {
Vector2 center;
float radius;
float speed;
bool alive;
uint32_t hp;
[[nodiscard]] bool alive() const noexcept { return hp != 0; }
};
enum ItemType {