o
odin.langpkg.dev
packages / app / boxxer

boxxer

1d2042eapp

Odin game code hotloading host.

MIT Β· updated 2 years ago

πŸ“¦boxxer

Odin game code hotloading host.

Based on this article by Karl Zylinski: https://zylinski.se/posts/hot-reload-gameplay-code/

Example folder structure:

Project/
β”œβ”€ src/
β”‚  β”œβ”€ game.odin
β”œβ”€ build/
β”‚  β”œβ”€ boxxer.exe
β”‚  β”œβ”€ game.dll

Example usage:

cd build
boxxer.exe -src:C:\code\Project\src -pkg:src -dll:game

boxxer takes 3 arguments:

  • -src: The code directory that efsw should watch for file saves. Saving files in your game package directory (including subfolders) will trigger a hotload automatically.
  • -pkg: The package folder name of your odin code. In the example above it would be src with how I've laid out my project. It would be whatever the root folder for your game code is. Needed for telling Odin how to compile your game package.
  • -dll: The name of your game's output dll. This is what boxxer will tell the Odin compiler what to name your game package dll.