No description
Find a file
Stephen Seo d4188f29b1
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
Use -Og instead of -O0 in Debug builds
2023-08-18 14:51:53 +09:00
.gitea/workflows Minor fix 2023-08-06 18:14:24 +09:00
res Test using a textured cube 2023-08-04 14:32:05 +09:00
src Inhibit some clang-tidy warnings 2023-08-18 14:46:33 +09:00
wasm_build Use -Og instead of -O0 in Debug builds 2023-08-18 14:51:53 +09:00
wasm_include Fixes 2023-08-04 11:42:11 +09:00
wasm_lib Init skeleton project using emscripten/raylib 2023-07-30 21:34:38 +09:00
.gitattributes Minor fixes 2023-08-06 18:06:27 +09:00
.gitignore Add helper fn to calc. ray/plane intersection 2023-08-07 21:39:59 +09:00
emsdk_version Add note about the version of emsdk used 2023-07-31 12:46:00 +09:00
LICENSE Add LICENSE 2023-07-31 12:46:58 +09:00
Makefile Use -Og instead of -O0 in Debug builds 2023-08-18 14:51:53 +09:00
README.md Update README.md 2023-08-10 16:29:30 +09:00

(First) Demo for jumpartifact.com

This project will be the demo displayed on the home page of jumpartifact.com.

Currently, a Gitea action is configured for this repo to publish the WASM build to jumpartifact.com/demo0.

Setting up

Clone https://github.com/emscripten-core/emsdk.git to ${HOME}/git/emsdk, and run the following commands in the cloned directory:

git checkout 3.1.44
./emsdk install 3.1.44
./emsdk activate 3.1.44

Now you can use emsdk by sourcing the emsdk_env.sh file and using emcc/em++. The Makefile in wasm_build/ should now "just work" with make.

Testing the wasm build

After building the wasm version of this demo (which should have emitted an .html file and a .wasm file and possibly more), you can invoke python -m http.server (or use whatever http server you want) in the directory where the .html file is, and open your browser to localhost:8000 (if using python -m http.server). You should then be able to click on the emitted .html to open the wasm build in the browser.