feat: Random airfield spawning

This commit is contained in:
2026-04-16 22:50:27 +01:00
parent 965c0f393c
commit 49dd53f8e4
11 changed files with 76 additions and 10 deletions

View File

@@ -12,11 +12,12 @@ class Airfield : public WorldObject
{
private:
vec2 _position;
int _ttl;
public:
Airfield(vec2 position) : _position(position) {}
Airfield(vec2 position, int ttl) : _position(position), _ttl(ttl) {}
void tick(float timestep, vec2 bounds) override;
void tick(float timestep, World *world) override;
void draw(Renderer *rend) override;
};