diff options
Diffstat (limited to 'Bullets.h')
-rw-r--r-- | Bullets.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -5,14 +5,26 @@ #include <raylib.h> +static constexpr float MARGIN {40}; + + struct ConstantVelocityBullet; -void update(float dt, std::vector<ConstantVelocityBullet>& bullets); +struct ConstantVelocitySystem +{ + ConstantVelocitySystem(); + explicit ConstantVelocitySystem(int reserved); + void update(float dt); + void draw(); + std::vector<ConstantVelocityBullet> m_bullets; +}; struct ConstantVelocityBullet { Vector2 position; Vector2 velocity; + float radius; + Color color; }; |