summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-17 01:59:13 +0200
committerAki <please@ignore.pl>2022-04-17 01:59:13 +0200
commit5209d9f8771ea765ebcadf89d18a6dbd1398dd12 (patch)
tree45c644e3acaead6a795096fcebbb3dd61eb4e11a /main.cpp
parent28ed6105138e43b50ed2ef88ed08d09d48d9d660 (diff)
downloadbullethell2022-5209d9f8771ea765ebcadf89d18a6dbd1398dd12.zip
bullethell2022-5209d9f8771ea765ebcadf89d18a6dbd1398dd12.tar.gz
bullethell2022-5209d9f8771ea765ebcadf89d18a6dbd1398dd12.tar.bz2
Added dumb stub of game screen
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 9f216e5..e76f30a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -10,7 +10,7 @@
#include "TitleScreen.h"
-static Game s_game;
+Game g_game;
void Loop();
@@ -19,7 +19,7 @@ void Loop();
int main()
{
InitWindow(800, 600, "Bullet Hell 2022");
- s_game.set(std::make_unique<TitleScreen>());
+ g_game.set(std::make_unique<TitleScreen>());
#ifdef PLATFORM_WEB
emscripten_set_main_loop(Loop, 0, 1);
#else
@@ -33,8 +33,8 @@ int main()
void Loop()
{
- s_game.update(GetFrameTime());
+ g_game.update(GetFrameTime());
BeginDrawing();
- s_game.draw();
+ g_game.draw();
EndDrawing();
}