summaryrefslogtreecommitdiffhomepage
path: root/ConstantVelocity.h
diff options
context:
space:
mode:
Diffstat (limited to 'ConstantVelocity.h')
-rw-r--r--ConstantVelocity.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/ConstantVelocity.h b/ConstantVelocity.h
new file mode 100644
index 0000000..3970aff
--- /dev/null
+++ b/ConstantVelocity.h
@@ -0,0 +1,31 @@
+#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
+{
+ using Vector = std::vector<ConstantVelocityBullet>;
+ Vector2 position;
+ Vector2 velocity;
+ float radius;
+ Color color;
+};