{"repo":"karl-zylinski/odin-raylib-hot-reload-game-template","free":true,"listed":false,"github":"https://github.com/karl-zylinski/odin-raylib-hot-reload-game-template","clone":"git clone https://github.com/karl-zylinski/odin-raylib-hot-reload-game-template.git","description":"An Odin + Raylib game template with Hot Reloading pre-setup","language":"Odin","stars":608,"topics":["gamedev","raylib","odin","wasm"],"license":"Zlib","category":"game-templates","readme_excerpt":"Odin + Raylib + Hot Reload template This is an Odin + Raylib game template with Hot Reloading pre-setup. It makes it possible to reload gameplay code while the game is running. Supported platforms: Windows, macOS, Linux and web. Supported editors and debuggers: Sublime Text, VS Code and RAD Debugger. See The Legend of Tuna repository for an example project that also uses Box2D: https://github.com/karl-zylinski/the-legend-of-tuna I used this kind of hot reloading while developing my game CAT & ONION. Hot reload quick start [!NOTE] These instructions use some Windows terminology. If you are on mac / linux, then replace these words: - bat - sh - exe - bin - dll - dylib (mac), so (linux) 1. Run build hot reload.bat to create game hot reload.exe (located at the root of the project) and game.dll (located in build/hot reload ). Note: It expects odin compiler to be part of your PATH environment variable. 2. Run game hot reload.exe , leave it running. 3. Make changes to the gameplay code in source/game.odin . For example, change the line rl.ClearBackground(rl.BLACK) so that it instead uses rl.BLUE . Save the file. 4. Run build hot reload.bat , it will recompile game.dll . 5. The running game hot reload.exe will see that game.dll changed and reload it. But it will use the same Game Memory (a struct defined in source/game.odin ) as before. This will make the game use your new code without having to restart. Note, in step 4: build hot reload.bat does not rebuild game hot reload.exe . It ","default_branch":null,"files":null,"tree":[],"storefront":"/r/karl-zylinski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/karl-zylinski/odin-raylib-hot-reload-game-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}