Welcome!
To get started, clone this repository to your local machine. You can do this by opening your terminal and running the following command:
Make sure to clone it to your Desktop
git clone https://github.com/adgianv/2D_Game.git
- Navigate to the cloned directory using the terminal.
- Compile the program by running the following command in your command line.
make re
After successful compilation, you will find an executable icon named PAC-MAN on your Desktop. Double-click this icon to start the game.

Note: Ensure that the repository remains on your Desktop, or you'll need to adjust the file paths in the code accordingly.
The game plays similarly to traditional Pac-Man with a few modifications:
Use the arrow keys to navigate Pac-Man through the maze.
You win when reaching the portal after collecting all the coins and the fruit in the maze.
Press R
to restart the game after losing.
Press ESC
to exit the game.
For more details about the game or its development, refer to the code and documentation within this repository.
Enjoy playing the game! If you encounter any issues or have questions, feel free to reach out.