From 22d0b0b1ef6717270b3fcda45500c98e5b803974 Mon Sep 17 00:00:00 2001 From: fschildt Date: Thu, 16 Oct 2025 19:52:11 +0200 Subject: tetris: draw non-menu stuff without imgui --- src/games/tetris/Tetris.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/games/tetris/Tetris.hpp') diff --git a/src/games/tetris/Tetris.hpp b/src/games/tetris/Tetris.hpp index 7f48e37..2d1dfba 100644 --- a/src/games/tetris/Tetris.hpp +++ b/src/games/tetris/Tetris.hpp @@ -18,7 +18,9 @@ private: uint32_t GetSoftdropCount(float dt); void HandleTetrominoPlacement(); - void HandleGameOver(); + + int32_t ReadHighscore(); + void WriteHighscore(); void Draw(); void DrawLineCounter(); @@ -33,7 +35,8 @@ private: private: static constexpr Color s_text_color {0.9f, 0.9f, 0.9f, 1.0f}; static constexpr float s_text_z {10.0f}; - static constexpr size_t s_frame_strings_capcity {32}; + static constexpr size_t s_frame_strings_capacity {32}; + static constexpr char s_tetris_highscore_path[]{"tetris_highscore.txt"}; Font m_font; Board m_board; -- cgit v1.2.3