Example of a simple platform game made using Odin and Raylib, that can run on the web.
- Emscripten. Follow instructions here: https://emscripten.org/docs/getting_started/downloads.html (the stuff under "Installation instructions using the emsdk (recommended)").
- Recent Odin compiler: This uses Raylib binding changes that were done on January 1, 2025.
- The first variable in
build_web.shmust be changed to be the path to your local emsdk directory. - Run
./run_tests.shand ensure all tests are passing - Run
./build_web.shto create the web output in./build/web/ - To play the game, have an http-server serve up the
./build/web/directory. If you have node you can donpx http-server ./build/web
Assets used are free public-domain assets from Kenney. The assets being public domain allows me to commit these files to source control for easy open source distribution. Please consider donating to Kenney to support his work.
This game uses the template from karl-zylinski found here which includes work from Caedo and Aronicu