From eb90e2e2d220b770f6b59dfad4315b477901a24d Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 15 Apr 2022 22:25:23 +0200 Subject: Initialized with a game stub --- main.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 main.cpp (limited to 'main.cpp') 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 +#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(); +} -- cgit v1.1