64 lines
1.3 KiB
Markdown
64 lines
1.3 KiB
Markdown
# Sindri
|
|
|
|
Game engine.
|
|
|
|
## Usage
|
|
|
|
<!-- TODO: --> TODO
|
|
|
|
## Compiling
|
|
|
|
### Dependencies
|
|
|
|
- `git`
|
|
- `odin`
|
|
- `unzip` on macOS or Linux
|
|
|
|
### Building
|
|
|
|
```sh
|
|
./build.sh # debug game and engine (default)
|
|
./build.sh -debug # debug game and engine
|
|
./build.sh -release # build game and engine
|
|
./build.sh -run # run game
|
|
./build.sh -fmt # format sources
|
|
```
|
|
|
|
## Contributing
|
|
|
|
Make sure to enable git hooks:
|
|
|
|
```sh
|
|
git config core.hooksPath scripts
|
|
```
|
|
|
|
vendor
|
|
- wgpu
|
|
- glfw
|
|
- lua
|
|
- miniaudio
|
|
- microui (temp)
|
|
- box3d?
|
|
- build.sh -> bootstrap shim for `compile/build.odin`
|
|
- stb
|
|
- kb (https://github.com/JimmyLefevre/kb)
|
|
|
|
## Hot Reload
|
|
|
|
build.sh -> hot reload enabled, debug mode enabled
|
|
build_release.sh -> hot reload disabled, debug mode disabled
|
|
build_debug.sh -> hot reload disabled, debug mode enabled
|
|
|
|
hot reload builds engine as .exe, then game as dynamic lib.
|
|
skips building the engine if its already running (pgrep).
|
|
|
|
no hot reload does not use game.dll, instead it imports the game source
|
|
as a normal Odin package during build.
|
|
|
|
## License
|
|
|
|
This project is licensed under the [MIT License](LICENSE), unless otherwise
|
|
noted. Individual files or subdirectories may carry a different license (for
|
|
example, the [Unlicense](https://unlicense.org)); in those cases, the license
|
|
terms specified in the file or directory take precedence.
|