summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
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();
}