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.
- Compile using:
g++ *.cpp -o main.exe -lpdcurses
- Run using:
./main.exe
main.exe requires map.txt and HiScore.dat files in same directory.
- 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.