Skip to content

vcahlik/pa2-pacman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

ASCII art version of the classical game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published