game-2026-01-18/README.md
2026-01-18 07:06:01 +02:00

31 lines
945 B
Markdown

# Game template
## Run
Linux and Windows:
```sh
zig build run
```
Web:
```sh
zig build -Dtarget=wasm32-emscripten run
```
Cross-compile for Windows from Linux:
```sh
zig build -Dtarget=x86_64-windows
```
## TODO
* Use [Skribidi](https://github.com/memononen/Skribidi) instead of fontstash for text rendering
* Support for audio formats (Might not need all of them, haven't decided):
* QOA, maybe [qoa.h](https://github.com/phoboslab/qoa/blob/master/qoa.h)?
* Flac, maybe [dr_flac.h](https://github.com/mackron/dr_libs/blob/master/dr_flac.h)?
* Wav, maybe [dr_wav.h](https://github.com/mackron/dr_libs/blob/master/dr_wav.h)?
* Mp3, maybe [dr_mp3.h](https://github.com/mackron/dr_libs/blob/master/dr_mp3.h)?
* Gamepad support.
* WASM Support. Currently a build config isn't provided for this target.
* Update build config for other platforms to reduce binary size. All of the video and audio drivers aren't needed, only gamepads