+0
日增长
+0
周增长
299
stars
22
forks
5
watchers
15
prs
10
issues
0
releases
README
pacman.zig Like https://github.com/floooh/pacman.c, but in Zig. Zig bindings for the sokol headers are here: https://github.com/floooh/sokol-zig WASM version Build and Run The main branch is supposed to work with the current zig-dev version (but may fall behind from time to time). Check the git branches for use with older Zig versions. To build and run the native version: bash git clone https://github.com/floooh/pacman.zig cd pacman.zig zig build run ...or for the web version (NOTE: this requires a one-time step to install the Emscripten SDK into zig-pkg/): bash zig build install-emsdk zig build -Dtarget=wasm32-emscripten run ...or to build a release versions: bash zig build --release=safe run zig build -Dtarget=wasm32-emscripten --release=small run On Windows, rendering is done via D3D11, on Linux via OpenGL, on macOS via Metal and the web version uses WebGL2. On Linux, you need to install the usual dev-packages for GL-, X11- and ALSA-development.