From 162ab6e923cf0c065449cfc248102b5b92fac8a7 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 17 Apr 2022 15:04:55 +0200 Subject: Separated bullet generator into class and created system for bullets --- GameScreen.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'GameScreen.h') diff --git a/GameScreen.h b/GameScreen.h index 3555a6f..b821d0c 100644 --- a/GameScreen.h +++ b/GameScreen.h @@ -3,6 +3,7 @@ #include #include "Bullets.h" +#include "ExampleGenerator.h" #include "Screen.h" @@ -13,8 +14,7 @@ public: void update(float dt) override; void draw() override; private: - static constexpr float TEST_INTERVAL {0.24f}; - float m_delay; Vector2 m_pos; - std::vector m_const_bullets; + ExampleGenerator m_generator; + ConstantVelocitySystem m_const; }; -- cgit v1.1