Skip to content

09amish/PyPac-A-Python-Based-Pac-Man-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PyPac: A Python Based Pac Man Game

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.

Table of Contents

Introduction

PyPac: A Python Based Pac Man Game. This pixelated adventure revitalizes the iconic maze-chasing escapade, offering players an immersive and captivating gaming experience.

Features

  • 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

Installation

To run this game on your local machine, follow these steps:

  1. Clone the repository:
    git clone https://github.com/09amish/PyPac-A-Python-Based-Pac-Man-Game.git
    

How to Play

  1. Run the game: In your terminal or command prompt, execute the Python script to start the game:

    python pacman.py
  2. Start the game: Press ENTER to start the game from the start window.

  3. 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.

  4. 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.

Technologies Used

  1. Python: The core programming language used for development. Python's simplicity and readability make it an excellent choice for game development.

  2. 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.

  3. 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.

  4. 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.

About

PyPac is a classic Pac-Man game recreated entirely using Python. With its simple yet captivating gameplay, . Built from scratch using Python's versatile features and libraries such as Pygame, PyPac offers a nostalgic journey into the world of retro arcade gaming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages