diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-27 17:12:49 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:53 +0200 |
commit | fe79577396231f2edb7927f1f61ce814f03851a7 (patch) | |
tree | d353a1caa449ec772dcf9a8681084fc2d6e64116 /src/game/game.cpp | |
parent | 6964d48c970e5f7b11897096c816271785af23ac (diff) |
add basic engine graphics
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r-- | src/game/game.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
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 <iostream> +#include <chrono> +#include <thread> -Game::Game(IVector2Factory vector2_factory) : _vector2_factory(std::move(vector2_factory)) +Game::Game(const std::shared_ptr<IScene> &scene) : _scene(scene) {} + +void Game::run() { -} + _scene->enter(); -void Game::run() {} + std::this_thread::sleep_for(std::chrono::seconds(3)); + + _scene->leave(); +} |