26 lines
539 B
Markdown
26 lines
539 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
|
|
* 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
|