1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include "Screen.h" class TitleScreen : public Screen { public: TitleScreen(); void update(float dt) override; void draw() override; private: static constexpr int FONT_SIZE {20}; static constexpr float INTERVAL {0.7f}; int m_title_x; int m_press_x; float m_blink; };