summaryrefslogtreecommitdiffhomepage
path: root/TitleScreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TitleScreen.cpp')
-rw-r--r--TitleScreen.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/TitleScreen.cpp b/TitleScreen.cpp
index 3faf48f..d109003 100644
--- a/TitleScreen.cpp
+++ b/TitleScreen.cpp
@@ -1,11 +1,21 @@
#include "TitleScreen.h"
+#include <memory>
+
#include <raylib.h>
+#include "Game.h"
+#include "GameScreen.h"
+
+
+extern Game g_game;
+
void
TitleScreen::update(const float dt)
{
+ if (IsKeyPressed(KEY_SPACE))
+ g_game.set(std::make_unique<GameScreen>());
}