From c9fc2ca532c5219a087924ece1e38be19c25f006 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Thu, 18 Jun 2026 16:15:46 -0400 Subject: Update --- 2026/examples/raylib/main.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 2026/examples/raylib/main.c (limited to '2026/examples/raylib/main.c') diff --git a/2026/examples/raylib/main.c b/2026/examples/raylib/main.c deleted file mode 100644 index da9383a..0000000 --- a/2026/examples/raylib/main.c +++ /dev/null @@ -1,33 +0,0 @@ -#include -#include -#include -#include - -int main(int argc, char **argv) { - InitWindow(240, 160, "test game raylib mode"); - SetTargetFPS(60); - emscripten_run_script("window.parent.postMessage({op: \"ready\"});"); - bool started = false; - while (!WindowShouldClose()) { - if (!started) { - double difficulty = EM_ASM_DOUBLE({return window.lcolonqJamStart || -1.0;}); - // printf("difficulty: %f\n", difficulty); - if (difficulty > 0.0) { - started = true; - emscripten_run_script("window.parent.postMessage({op: \"started\"});"); - printf("started at difficulty: %f\n", difficulty); - } - } else { - if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { - printf("clicked\n"); - emscripten_run_script("window.parent.postMessage({op: \"done\", win: false});"); - started = false; - } - BeginDrawing(); - ClearBackground(RED); - DrawText("hello gamer", 0, 0, 20, WHITE); - EndDrawing(); - } - } - return 0; -} -- cgit v1.2.3