diff options
| author | fschildt <florian.schildt@protonmail.com> | 2026-01-20 02:16:10 +0100 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2026-01-20 02:16:10 +0100 |
| commit | 028fdb5b30befb1200f9f6ea8e8e247dc7bed50a (patch) | |
| tree | a2cc09480cdfe03d80e3af4936dede18d58468e0 /src/games/snake | |
| parent | 6da9be5810bf82e9d0b3b2a8bce7606ef2e2bf93 (diff) | |
snake: reduce playfield size
Diffstat (limited to 'src/games/snake')
| -rw-r--r-- | src/games/snake/Snake.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/games/snake/Snake.hpp b/src/games/snake/Snake.hpp index 3d08baf..22f93cb 100644 --- a/src/games/snake/Snake.hpp +++ b/src/games/snake/Snake.hpp @@ -35,8 +35,8 @@ private: private: - static constexpr int32_t max_map_width = 16; - static constexpr int32_t max_map_height = 16; + static constexpr int32_t max_map_width = 14; + static constexpr int32_t max_map_height = 14; static constexpr float tiles_per_second = 4.0f; static constexpr char highscore_path[] = "snake_highscore.txt"; @@ -45,8 +45,8 @@ private: static std::mt19937 s_rng; std::uniform_int_distribution<int32_t> m_dist; - int32_t m_starting_map_width = 12; - int32_t m_starting_map_height = 12; + int32_t m_starting_map_width = 10; + int32_t m_starting_map_height = 8; Direction m_direction; Direction m_last_advanced_direction; |
