summaryrefslogtreecommitdiffhomepage
path: root/GameScreen.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-17 15:04:55 +0200
committerAki <please@ignore.pl>2022-04-17 15:05:31 +0200
commit162ab6e923cf0c065449cfc248102b5b92fac8a7 (patch)
tree751b8c57dc0309d42ee5c524f43780021ac53acc /GameScreen.h
parent85119293fe4f6814d44e8ee3f182c40876829128 (diff)
downloadbullethell2022-162ab6e923cf0c065449cfc248102b5b92fac8a7.zip
bullethell2022-162ab6e923cf0c065449cfc248102b5b92fac8a7.tar.gz
bullethell2022-162ab6e923cf0c065449cfc248102b5b92fac8a7.tar.bz2
Separated bullet generator into class and created system for bullets
Diffstat (limited to 'GameScreen.h')
-rw-r--r--GameScreen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/GameScreen.h b/GameScreen.h
index 3555a6f..b821d0c 100644
--- a/GameScreen.h
+++ b/GameScreen.h
@@ -3,6 +3,7 @@
#include <raylib.h>
#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<ConstantVelocityBullet> m_const_bullets;
+ ExampleGenerator m_generator;
+ ConstantVelocitySystem m_const;
};