diff options
Diffstat (limited to 'Spiral.h')
-rw-r--r-- | Spiral.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Spiral.h b/Spiral.h new file mode 100644 index 0000000..064e3a7 --- /dev/null +++ b/Spiral.h @@ -0,0 +1,32 @@ +#pragma once + +#include <vector> + +#include <raylib.h> + + +struct SpiralBullet +{ + using Vector = std::vector<SpiralBullet>; + Vector2 position; + float velocity; + float angle; + float redirect; + float timer; + float redirect_time; + float redirect_decrease; + float radius; + Color color; +}; + + +struct SpiralSystem +{ + static constexpr float MARGIN {40}; + static constexpr int RESERVED {10000}; + + SpiralSystem(); + void update(float dt); + void draw(); + SpiralBullet::Vector m_bullets; +}; |