aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-07 19:45:17 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:01 +0200
commit8805b1fe27344e8086cebabf869b7a02d2376f05 (patch)
treea90a2e2dda1bcb98fb4de5cd983138e5441c2222 /src/game/game.cpp
parentf778317bae709f397345a2d5e04e23864c6391b3 (diff)
refactor: decouple statusline from scene & cursor controller
Might be slightly slower than previously though...
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 064b643..8d72324 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -27,6 +27,8 @@ Game::Game(
void Game::on_start() noexcept
{
+ _scene->register_component(_status_manager->get_statusline(), Vector2({0, 0}));
+
_status_manager->initialize();
_status_manager->set_section_title(StatusLineSection::A, "");