Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.81 KB

File metadata and controls

39 lines (31 loc) · 1.81 KB

2pacman

2pacman gameplay screenshot

A pacman clone.

For a game that seems simple on the surface it has a surprising amount of
complexity and interesting subtleties. I highly recommend checking out The
Pac-Man Dossier which has a ton of really interesting information about pacman.

Resources

The Pac-Man Dossier is amazing, it has everything you need to know about pacman.
Understanding Pac-Man Ghost Behavior is a nice condensed article based on The Pac-Man Dossier.

Dependencies

SDL2

Building

Linux

  1. Install SDL2, linux instructions here
  2. run make
  3. run ./2pacman

Windows

  1. Install mingw-w64
  • You can find the specific version you want from here.
  • The verision I used was version 8.1.0, x86_64-posix-seh
  • Add the mingw-w64 bin directory to your path environment variable, so that you can use gcc
  • You can find more details about setting up SDL2 with mingw-w64 here.
  1. Install SDL2
  • Download the mingw-w64 development libraries
  • After extracting the contents, copy the directory x86_64-w64-mingw32 to a
    directory called SDL2 in this project
  1. run build
  2. run 2pacman

macOS

Not tested yet, though should work similar to Linux. Probably using clang
instead of gcc.