https://github.com/christs8920/pacman-cpp
A pacman style game made in C++ using the PDcurses library.
https://github.com/christs8920/pacman-cpp
cli command-line cpp game game-development gamedev ncurses pacman-game pdcurses
Last synced: 2 months ago
JSON representation
A pacman style game made in C++ using the PDcurses library.
- Host: GitHub
- URL: https://github.com/christs8920/pacman-cpp
- Owner: ChrisTs8920
- License: mit
- Created: 2023-04-21T14:00:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T10:01:00.000Z (9 months ago)
- Last Synced: 2025-01-10T09:11:52.230Z (4 months ago)
- Topics: cli, command-line, cpp, game, game-development, gamedev, ncurses, pacman-game, pdcurses
- Language: C++
- Homepage:
- Size: 185 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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).
2. - 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

### Main Menu

### High Scores

### Difficulty selection
