https://github.com/k-nrd/odin-sdl-starter
With hot-reloading
https://github.com/k-nrd/odin-sdl-starter
Last synced: 3 months ago
JSON representation
With hot-reloading
- Host: GitHub
- URL: https://github.com/k-nrd/odin-sdl-starter
- Owner: k-nrd
- License: mit
- Created: 2024-09-30T22:49:24.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T22:50:24.000Z (8 months ago)
- Last Synced: 2025-01-07T08:16:02.209Z (4 months ago)
- Language: Odin
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Odin SDL2 Starter
Based on @karl-zylinski's [template](https://github.com/karl-zylinski/odin-raylib-hot-reload-game-template).
Uses [task](https://github.com/go-task/task) for automation.## Usage
### Development
```bash
# Creates a `build/dev` folder for executable and libraries,
# and copies vendor libraries to that folder too.
# With `-w`, it watches for changes in `lib/**/*.odin` files,
# and recompiles the game library on detection.
task dev:lib -w
```Then, in another terminal:
```bash
# Runs the development executable
task dev:run
```Modify game library code and watch the changes show up once recompilation is done.
### Release
To build and run:
```bash
task release:build && task release:run
```### To-do
- [ ] Include some assets and watch for changes there as well