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.
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.
- Install SDL2, linux instructions here
- run
make
- run
./2pacman
- 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.
- Install SDL2
- Download the mingw-w64 development libraries
- After extracting the contents, copy the directory
x86_64-w64-mingw32
to a
directory calledSDL2
in this project
- run
build
- run
2pacman
Not tested yet, though should work similar to Linux. Probably using clang
instead of gcc.