Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1020 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 1020 Bytes

pa2-pacman

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...

Screenshot

Screenshot

How to set up

  1. Clone the repository, cd into it
  2. Create a build directory and enter it: mkdir build && cd build
  3. Run cmake (with the project root directory as argument): cmake ..
  4. Build the project: make
  5. Run the game with e.g. pacman ../maps/1.pacmap 3 (arguments: file with map, difficulty)

How to create a custom map

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)