A replica of the legendary arcade game "Pacman" made using Open Graphics Library and coded completely in C++.
This was made for the partial fulfilment of the requirement of an academic project for the subject Computer Graphics.
Here's a preview of the project.
Make sure that your OS has OpenGL installed. Navigate your terminal to the directory where you've downloaded the project. Compile and execute the game using the following commands:
g++ GL_Pacman.cpp -lGL -lGLU -lglut
./a.out
- To start the game, press the space key.
- To control Pac-Man use A to go left, D to go right, W to go up and S to go down.
- Your goal is to eat all the food and avoid the monsters.
- To restart the game at any point press the R key.
- Use the Escape Key to exit the game.
- Use the Right Mouse Button to change Background Color, restart the game or exit the game.
- Difficulty level (a choice for user to increase or decrease the number of monsters)
- More maps
- A leaderboard
Please feel free to suggest improvements or rectifications I can make.