Go to file
Stephen Seo d49941096a
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 51s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
Attempt to fix wrong canvas size
After bumping emsdk version, the canvas loads with an invalid size. This
commit attempts to fix this.
2024-03-21 16:56:49 +09:00
.forgejo/workflows Update deploy wasm workflow 2024-03-21 16:08:47 +09:00
res Test using a textured cube 2023-08-04 14:32:05 +09:00
src Attempt to fix wrong canvas size 2024-03-21 16:56:49 +09:00
third_party_build Fix third_party_build/wasm_make_raylib.sh 2024-03-21 16:36:35 +09:00
wasm_build Modify wasm Makefile to support alt emsdk sh path 2023-12-12 16:24:09 +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 Bump emsdk_version to 3.1.56 2024-03-21 16:44:58 +09:00
LICENSE Add LICENSE 2023-07-31 12:46:58 +09:00
Makefile Impl. randomized effect colors on walker hack 2023-08-31 15:26:24 +09:00
README.md Bump emsdk_version to 3.1.56 2024-03-21 16:44:58 +09:00

(First) Demo for jumpartifact.com

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

Currently, a forgejo 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.56
./emsdk install 3.1.56
./emsdk activate 3.1.56

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.