blobbyball/wasm.sh
2025-03-08 10:31:01 +02:00

6 lines
249 B
Bash
Executable File

#!/bin/bash
mkdir -p wasm
emcc -o wasm/game.html main.c -Os -Wall ./raylib/lib/libraylib.a -I. -I./raylib.h -L. -L./raylib/lib/librarylib.a -s USE_GLFW=3 -s ASYNCIFY -DPLATFORM_WEB --preload-file assets -s -s TOTAL_MEMORY=67108864 -s ASSERTIONS=1