Using Karl2D Hot-Reload template Play game on Itch.io
Project utilizes my utility libraries - Odin Utilities
odin run main_release
Hot-Reload currently only works on Windows.
- Download this repository, use it as a template for your project
- Put the contents of the Karl2D repository into
game/karl2d. - Execute
odin run .in the project's root folder (wherebuild.odinlives). This will compile the stuff in thegamefolder as a DLL and also compile agame_hot_reload.exeexecutable. - Start
game_hot_reload.exe, leave it running. - Make changes to
game/game.odin, for example, change the color passed tok2.draw_circlefromk2.DARK_BLUEtok2.RED. - Run
odin run .in the project's root folder again. Only the DLL is rebuilt and then reloaded by the running game.
In the project's root, run: odin run game/karl2d/build_web -- main_web. The web build will end up in main_web/bin.
Note
I'm aware that you currently get two bin folders: bin/hot_reload and main_web/bin. Ideally both would use the same folder. Again, this is at the moment an experimental repository.
In the project's root, run: odin build main_release