1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#pragma once #include <raylib.h> #include "Bullets.h" #include "Screen.h" class GameScreen : public Screen { public: GameScreen(); 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; };