#include #include #ifdef PLATFORM_WEB #include #endif #include "Game.h" #include "Globals.h" #include "TitleScreen.h" Game g_game; void Loop(); int main() { InitWindow(800, 600, "Bullet Hell 2022"); g_game.set(std::make_unique()); #ifdef PLATFORM_WEB emscripten_set_main_loop(Loop, 0, 1); #else SetTargetFPS(60); while (!WindowShouldClose()) Loop(); #endif // PLATFORM_WEB CloseWindow(); } void Loop() { g_game.update(GetFrameTime()); BeginDrawing(); g_game.draw(); EndDrawing(); }