Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/floooh/pacman.zig
Simple Pacman clone written in Zig.
https://github.com/floooh/pacman.zig
Last synced: 7 days ago
JSON representation
Simple Pacman clone written in Zig.
- Host: GitHub
- URL: https://github.com/floooh/pacman.zig
- Owner: floooh
- License: mit
- Created: 2020-12-23T18:14:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T08:30:09.000Z (2 months ago)
- Last Synced: 2024-10-15T02:31:30.591Z (25 days ago)
- Language: Zig
- Homepage:
- Size: 692 KB
- Stars: 235
- Watchers: 6
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - pacman.zig🗒️Simple Pacman clone written in Zig
README
# pacman.zig
[![build](https://github.com/floooh/pacman.zig/actions/workflows/main.yml/badge.svg)](https://github.com/floooh/pacman.zig/actions/workflows/main.yml)
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](https://floooh.github.io/pacman.zig/pacman.html)
## 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 run (NOTE: this will install a local Emscripten SDK into the Zig cache, so the first
run will take a little while):```bash
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.