o
odin.langpkg.dev
packages / library / odin-rl-template

odin-rl-template

34a674flibrary

No description provided.

MIT · updated 3 months ago

Odin, Raylib, Hot Reload, and Web template

A template in Odin which supports Hot Reloading in Raylib, while also supporting wasm through Emscripten.

To build:

./build.sh <run/web> <run/web> 
  • Building with just ./build.sh will build the hot hot reloadable executable + dylib
  • run will run it
  • web will compile it to wasm (requires emcc)
  • Running run and web will start up a localhost server through python3 -m http.server

Details:

  • Based off of odin-raylib-hot-reload-game-template. Although most of the architecture was refactored, there are still strong reminisces of it left, such as the js file and emscripten specific functions.
  • The web version currently does not support hot reloading.