aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp14
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();
+}