diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-10 21:16:05 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:55 +0200 |
commit | 4c6fa6bfd37862acfbe377bb95561da4b4ce8cc9 (patch) | |
tree | 2e73b109c50f4ebedc89a8c2eb881fa654cc2a37 /src/engine/engine.cpp | |
parent | 19f5d93dba74dda1fd1a9211707d98b6dd9b19ba (diff) |
feat: make status bar visible from game start
Diffstat (limited to 'src/engine/engine.cpp')
-rw-r--r-- | src/engine/engine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <cstdlib> +#include <fmt/core.h> #include <utility> 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]() { |