Skip to content

bitwitch/2pacman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2pacman

I have been programming in c more lately so I wanted to write a game in it to
practice and hopefully learn some things. I decided to make 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.

About

pacman clone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages