diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..6b7a251 --- /dev/null +++ b/main.cpp @@ -0,0 +1,33 @@ +#include "raylib.h" + +#ifdef PLATFORM_WEB +#include <emscripten/emscripten.h> +#endif + + +void Loop(); + + +int main() +{ + InitWindow(800, 600, "bullethell2022"); +#ifdef PLATFORM_WEB + emscripten_set_main_loop(Loop, 0, 1); +#else + SetTargetFPS(60); + while (!WindowShouldClose()) + { + Loop(); + } +#endif // PLATFORM_WEB + CloseWindow(); +} + + +void Loop() +{ + BeginDrawing(); + ClearBackground(RAYWHITE); + DrawText("bullethell2022", 190, 200, 20, LIGHTGRAY); + EndDrawing(); +} |