From fe79577396231f2edb7927f1f61ce814f03851a7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 27 Feb 2022 17:12:49 +0100 Subject: add basic engine graphics --- src/game/game.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/game/game.cpp') diff --git a/src/game/game.cpp b/src/game/game.cpp index e785e18..9b08adc 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -1,9 +1,15 @@ #include "game.hpp" -#include +#include +#include -Game::Game(IVector2Factory vector2_factory) : _vector2_factory(std::move(vector2_factory)) +Game::Game(const std::shared_ptr &scene) : _scene(scene) {} + +void Game::run() { -} + _scene->enter(); -void Game::run() {} + std::this_thread::sleep_for(std::chrono::seconds(3)); + + _scene->leave(); +} -- cgit v1.2.3-18-g5258