Console version of the classical game. Written in C++, uses the ncurses library to output characters to terminal. FIT CTU school project.
Features: various ghost types, power-ups, bonuses, teleports, customizable maps...
- Clone the repository,
cd
into it - Create a build directory and enter it:
mkdir build && cd build
- Run cmake (with the project root directory as argument):
cmake ..
- Build the project:
make
- Run the game with e.g.
pacman ../maps/1.pacmap 3
(arguments: file with map, difficulty)
Create a normal text file and save it with the .pacmap extension. You can get inspiration from the files in the maps/ directory. Symbol meaning:
- H wall
- (space) empty block
- < player's starting position
- o enemy spawn point
- \ teleport
- . powerup (invincibility)