Skip to content

floooh/pacman.zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pacman.zig

build

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:

git clone https://github.com/floooh/pacman.zig
cd pacman.zig
zig build run

...or for the web version run (NOTE: this will install a local Emscripten SDK into the Zig cache, so the first run will take a little while):

zig build -Dtarget=wasm32-emscripten run

...or to build a release versions:

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.

About

Simple Pacman clone written in Zig.

Resources

License

Stars

Watchers

Forks

Packages

No packages published