https://github.com/maricard18/pac-man-game
Replica of the Pac-Man Game in C++
https://github.com/maricard18/pac-man-game
cpp cpp11 pac-man pac-man-game pacman pacman-projects raylib raylib-cpp
Last synced: 3 months ago
JSON representation
Replica of the Pac-Man Game in C++
- Host: GitHub
- URL: https://github.com/maricard18/pac-man-game
- Owner: maricard18
- Created: 2024-03-11T19:23:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-18T16:13:06.000Z (about 1 year ago)
- Last Synced: 2025-01-20T15:59:20.110Z (4 months ago)
- Topics: cpp, cpp11, pac-man, pac-man-game, pacman, pacman-projects, raylib, raylib-cpp
- Language: C++
- Homepage:
- Size: 11.3 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Pac-Man Game**
This project is a replica of the classic Pac-Man Game, originally developed in 1980.
It has been implemented in C++ using the [raylib](https://www.raylib.com/) graphical library.## 🕹️ **Usage**
To play this game you can use the `make run` command.
This rule will generate a `pac-man` file, which is the zipped version of the game.
You can launch the executable by running the command `./pac-man`
This project currently supports only **Mac** and **Linux** platforms.## 🎥 **Demo**
![]()
## 🧬 **Cloning**
To successfully clone this repository, use this command
```shell
git clone https://github.com/maricard18/pac-man-game.git
```## About
All the graphical components in this game were created using functions from the raylib library, no images or textures were utilized.
The CPU movement pattern was implemented using a self-made random algorithm system.
The primary movement is always upwards unless it encounters a dead end.
When passing through an intersection or facing a possible new direction, it has a 60% chance of continuing forward and a 40% chance of turning left or right.## Contributing
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests through GitHub.
---
> Feel free to ask me any questions through Slack (**maricard**).
> GitHub [@maricard18](https://github.com/maricard18) ·
> Linkedin [Mario Henriques](https://www.linkedin.com/in/mario18) ·
> [42 Porto](https://www.42porto.com/en)