diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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(); } |