Cloned Games

pacman.zig

SporadicPlayableWebWindowsLinuxOSX

Based on Pac-Man

About

Pac-Man is Namco's 1980 arcade maze game, released in Japan as Puck Man, in which the player eats dots in a maze while avoiding four ghosts. pacman.zig is the Zig counterpart of the author's pacman.c Pac-Man clone, using Zig bindings for the sokol headers. It runs natively on Windows (D3D11), Linux (OpenGL) and macOS (Metal), and in the browser via WebGL2.

Getting started

A web version is playable on the project's homepage. To build locally, clone the repo and run zig build run; the main branch tracks the current Zig development version, with branches for older Zig releases, and Linux needs the usual GL, X11 and ALSA dev packages.

Additional notes

Build note
Building the web target installs a local Emscripten SDK into the Zig cache, so the first run takes a while.
Share:

We’d like to use analytics cookies to understand how visitors use this site. See our Privacy Policy for details. Nothing else is tracked, and the site works the same either way.