[Updated] Devcontainer and dockerfile, [TODO] Make it statically link instead of shared, for standalone executables

This commit is contained in:
Ninjaws
2024-12-04 23:32:42 +01:00
parent 9151243c52
commit 681dcdd029
4 changed files with 38 additions and 22 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "raylib.h"
int main() {
// Initialize window
InitWindow(800, 600, "Raylib + Emscripten Test");
// Main game loop
while (!WindowShouldClose()) {
// Update (empty for now)
// Draw
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Hello, Raylib on WebAssembly!", 190, 200, 20, DARKGRAY);
EndDrawing();
}
// Close window
CloseWindow();
return 0;
}