#include "GameScreen.h" #include #include #include #include "Stage.h" GameScreen::GameScreen(std::unique_ptr stage) : m_stage {std::move(stage)} { } void GameScreen::update(const float dt) { if (m_stage) m_stage->update(dt); } void GameScreen::draw() { if (m_stage) { m_stage->draw(); DrawText(TextFormat("%d", m_stage->total_bullets()), 5, 25, 20, DARKGRAY); } DrawFPS(5, 5); }