Experience the excitement of "PyPac," a modern reinterpretation of the timeless arcade classic. This project brings back the fun of chasing through mazes using the power of Python and Pygame.
PyPac: A Python Based Pac Man Game. This pixelated adventure revitalizes the iconic maze-chasing escapade, offering players an immersive and captivating gaming experience.
- Dynamic start window
- Responsive game loop with smooth character movement
- Custom pixel font for a retro feel
- Intelligent enemy pathfinding using the A* algorithm
- Interactive game over window displaying earned points
To run this game on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/09amish/PyPac-A-Python-Based-Pac-Man-Game.git
-
Run the game: In your terminal or command prompt, execute the Python script to start the game:
python pacman.py
-
Start the game: Press ENTER to start the game from the start window.
-
Control Pac-Man: Use the arrow keys to navigate Pac-Man through the maze:
Up Arrow: Move up Down Arrow: Move down Left Arrow: Move left Right Arrow: Move right Collect points: Move Pac-Man to collect pellets and avoid enemies to score points.
-
Game Over: When the game ends, you will see the game over window displaying your score. Press ENTER to return to the start window and play again.
-
Python: The core programming language used for development. Python's simplicity and readability make it an excellent choice for game development.
-
Pygame: A set of Python modules designed for writing video games. Pygame provides functionality for graphics rendering, sound playback, and handling user input, making it easier to create an interactive game.
-
Custom Pixel Font: The game uses the "Press Start 2P" font to evoke a retro arcade feel. This custom font enhances the visual aesthetics, giving the game a nostalgic touch.
-
A-Star Algorithm: Utilized for intelligent enemy pathfinding. The A* algorithm enables enemies to dynamically navigate the maze and chase Pac-Man, adding strategic depth to the gameplay.
