summaryrefslogtreecommitdiffhomepage
path: root/TitleScreen.cpp
blob: d109003189edfc594d8a43df6e945415c2abd47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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>());
}


void
TitleScreen::draw()
{
    DrawText("Bullet HELL 2022", 190, 200, 20, LIGHTGRAY);
}