summaryrefslogtreecommitdiffhomepage
path: root/Spiral.h
blob: 064e3a7d8b3df08948af1ed140cb7c77f861df25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
};