From 5209d9f8771ea765ebcadf89d18a6dbd1398dd12 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 17 Apr 2022 01:59:13 +0200 Subject: Added dumb stub of game screen --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.cpp') 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()); + g_game.set(std::make_unique()); #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(); } -- cgit v1.1