Skip to content

A pacman style game made in C++ using the PDcurses library.

License

Notifications You must be signed in to change notification settings

ChrisTs8920/Pacman-Cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pacman - C++ and PDcurses

Description

This project is a pacman style game made using C++ and the PDcurses library. It includes the player 'P', and 2 monsters, Traal 'T' and Gnome 'G'. The goal of the player is to find the parchment while the monsters chase him. The monsters use the BFS (Breadth-First Search) algorithm to track the player's position.

This game was made during my C++ course in University.

How to Run

  1. Compile using: g++ *.cpp -o main.exe -lpdcurses
  2. Run using: ./main.exe

main.exe requires map.txt and HiScore.dat files in same directory.

How to Play

  1. Use arrow keys to move, spacebar to skip turn (if using turn based movement).
    • The player 'P' needs to collect 10 jewels 'J' scattered around the map.
    • Once the player collects all jewels, a parchment 'M' spawns on the map.
    • If the player collects the parchment, he wins.
    • If the monsters 'G' and 'T' catch the player, the game is over.

Scores are kept in the HiScore.dat file.

Screenshots

Game

Game

Main Menu

Main Menu

High Scores

High Scores

Difficulty selection

Difficulty

Releases

No releases published

Packages

No packages published

Languages