An open API service indexing awesome lists of open source software.

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.

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

![Game](https://github.com/ChrisTs8920/Pacman-Cpp/blob/main/screenshots/Screenshot_1.jpg?raw=true)

### Main Menu

![Main Menu](https://github.com/ChrisTs8920/Pacman-Cpp/blob/main/screenshots/Screenshot_2.jpg?raw=true)

### High Scores

![High Scores](https://github.com/ChrisTs8920/Pacman-Cpp/blob/main/screenshots/Screenshot_3.jpg?raw=true)

### Difficulty selection

![Difficulty](https://github.com/ChrisTs8920/Pacman-Cpp/blob/main/screenshots/Screenshot_4.jpg?raw=true)