From 2773854a3e749512826fa8b71b77e754be79836f Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 18 Apr 2022 11:05:24 +0200 Subject: Renamed bullets header to simply ConstantVelocity --- ConstantVelocity.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ConstantVelocity.h (limited to 'ConstantVelocity.h') 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 + +#include + + +static constexpr float MARGIN {40}; + + +struct ConstantVelocityBullet; + + +struct ConstantVelocitySystem +{ + ConstantVelocitySystem(); + explicit ConstantVelocitySystem(int reserved); + void update(float dt); + void draw(); + std::vector m_bullets; +}; + + +struct ConstantVelocityBullet +{ + using Vector = std::vector; + Vector2 position; + Vector2 velocity; + float radius; + Color color; +}; -- cgit v1.1