diff options
author | Aki <please@ignore.pl> | 2022-04-17 01:59:13 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-17 01:59:13 +0200 |
commit | 5209d9f8771ea765ebcadf89d18a6dbd1398dd12 (patch) | |
tree | 45c644e3acaead6a795096fcebbb3dd61eb4e11a /main.cpp | |
parent | 28ed6105138e43b50ed2ef88ed08d09d48d9d660 (diff) | |
download | bullethell2022-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.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(); } |