From 4c6fa6bfd37862acfbe377bb95561da4b4ce8cc9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 10 Mar 2022 21:16:05 +0100 Subject: feat: make status bar visible from game start --- src/engine/engine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/engine') diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 6050348..d793c65 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -1,10 +1,12 @@ #include "engine.hpp" #include "input_actions.hpp" +#include "strings.hpp" #include "util/function.hpp" #include +#include #include CLIGameEngine::CLIGameEngine(IGameFactory game_factory, ISceneFactory scene_factory, @@ -34,6 +36,10 @@ void CLIGameEngine::start() noexcept _cursor_controller->move_to(center_position); + scene->write_status(fmt::format(STATUS_BAR_COORDINATES, + fmt::arg("x", center_position.get_x()), + fmt::arg("y", center_position.get_y()))); + std::atexit(normalize_lambda( [scene, this]() { -- cgit v1.2.3-18-g5258