summaryrefslogtreecommitdiffhomepage
path: root/Bullets.h
blob: 4a771007fc3bfa5d6c3349cfae441a8f64bef04e (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
#pragma once

#include <vector>

#include <raylib.h>


static constexpr float MARGIN {40};


struct ConstantVelocityBullet;


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;
};