Welcome to the Pac-Man game project! This is a classic Pac-Man game implemented in C#. The project is designed to demonstrate the application of Object-Oriented Programming (OOP) principles and software engineering concepts.
- Object-Oriented Design: The game is structured using OOP concepts such as classes, inheritance, polymorphism, and encapsulation.
- Character Movement: Smooth and responsive controls for Pac-Man.
- Ghost AI: Intelligent ghost behavior that adds challenge to the game.
- Collision Detection: Accurate detection of collisions between Pac-Man, ghosts, and walls.
- Game Mechanics: Classic gameplay elements including power pellets and ghost vulnerability.
Class Diagram:
- .NET SDK version 8.0 or later
-
Clone the repository:
git clone https://github.com/Mohab-Sobhy/Pacman-Game.git
-
Navigate to the project directory:
cd /yourPath/Pacman-Game
-
Build the project:
dotnet build
-
Run the project:
dotnet run
- Use the arrow keys (WASD) to move Pac-Man.
- Avoid the ghosts and eat all the pellets to win.
Contributions are welcome! Feel free to open issues or submit pull requests.
- Inspired by the classic Pac-Man game.