aboutsummaryrefslogtreecommitdiff
path: root/src/games/tetris/Tetris.hpp
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-10-17 12:03:56 +0200
committerfschildt <florian.schildt@protonmail.com>2025-10-17 12:03:56 +0200
commit7935895480b74fb9fe02e5f26a82265a72604d77 (patch)
tree1c300cdc13ec38747a7253ff705fa18c0b59c33c /src/games/tetris/Tetris.hpp
parent22d0b0b1ef6717270b3fcda45500c98e5b803974 (diff)
add arena allocator
Diffstat (limited to 'src/games/tetris/Tetris.hpp')
-rw-r--r--src/games/tetris/Tetris.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/games/tetris/Tetris.hpp b/src/games/tetris/Tetris.hpp
index 2d1dfba..1c60a98 100644
--- a/src/games/tetris/Tetris.hpp
+++ b/src/games/tetris/Tetris.hpp
@@ -1,9 +1,11 @@
#pragma once
+#include <common/defs.hpp>
#include <games/Game.hpp>
#include <games/tetris/Tetromino.hpp>
#include <games/tetris/Board.hpp>
#include <common/Font.hpp>
+#include <common/Arena.hpp>
class Tetris : public Game {
@@ -51,7 +53,7 @@ private:
int32_t m_softdrop_counter = 0;
int32_t m_highscore = 0;
- std::vector<std::u32string> m_frame_strings;
+ Arena m_frame_arena {KIBIBYTES(2)};
};