Inspired by @vnglst's Mastodon Post and Java Script Version.
The makefile includes a compilation rule for html5/wasm, but before that'll work you'll probably need to
- Follow raylibs instructions to set up our environment for compilation with emscripten.
- Modify the paths to raylib and
emscripten.sh
in the makefile to fit your environment.
A working Version can be seen on my blog https://www.repetitions.de/posts/pong-wars/
- prevent balls from getting stuck sometimes.