summaryrefslogtreecommitdiffhomepage
path: root/GameScreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GameScreen.cpp')
-rw-r--r--GameScreen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/GameScreen.cpp b/GameScreen.cpp
index f813a60..1a8795f 100644
--- a/GameScreen.cpp
+++ b/GameScreen.cpp
@@ -5,6 +5,8 @@
#include <raylib.h>
+#include "Globals.h"
+#include "OverScreen.h"
#include "Stage.h"
@@ -20,6 +22,8 @@ void
GameScreen::update(const float dt)
{
m_stage->update(dt);
+ if (m_stats->lifes < 0)
+ g_game.set(std::make_unique<OverScreen>(m_stats));
}