summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-15 22:25:23 +0200
committerAki <please@ignore.pl>2022-04-15 22:25:23 +0200
commiteb90e2e2d220b770f6b59dfad4315b477901a24d (patch)
tree793fe99e370e92421f1bdc4d4792ed6e83568340 /main.cpp
downloadbullethell2022-eb90e2e2d220b770f6b59dfad4315b477901a24d.zip
bullethell2022-eb90e2e2d220b770f6b59dfad4315b477901a24d.tar.gz
bullethell2022-eb90e2e2d220b770f6b59dfad4315b477901a24d.tar.bz2
Initialized with a game stub
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp33
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();
+}