summaryrefslogtreecommitdiffhomepage
path: root/Bullets.h
diff options
context:
space:
mode:
Diffstat (limited to 'Bullets.h')
-rw-r--r--Bullets.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/Bullets.h b/Bullets.h
index 7778a9c..4a77100 100644
--- a/Bullets.h
+++ b/Bullets.h
@@ -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;
};