pac-man - README

pac-man

Python project · featured · game, pygame, duo

Pac-Man in Python, built as a duo with sylvzzz: a new maze every level and four ghosts that each hunt you differently.

Level 1
Level 1
The menu
The menu
The cheat menu
The cheat menu

The problem

Rebuild the 1980 arcade game in Python as a duo with sylvzzz, with a twist: every level is a fresh maze from an assigned maze package, so nothing about the board can be hard-coded. The game rules also had to stay independent from the graphics.

What I built

The hard part

Making a random maze always playable. The package's closed "42" cells can wall off a pocket of corridor, and a pacgum in there can never be eaten, so the level never ends. Unreachable tiles are now sealed before anything is placed, and since tile (1, 1) may well be a wall in the next maze, nothing uses fixed coordinates: every spawn searches for the nearest open tile.

Built with

More projects