Skip to content

Recreation of the classic arcade game "Pacman" using Pygame. The game incorporates a Breadth-First Search (BFS) for ghost traversal

License

Notifications You must be signed in to change notification settings

rajpandya737/Pacman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pacman

2023-07-24 18-50-53

Description

Super old code base btw, made this in like 2022 or smthn, I just come back to this every now and then to try and make it better with a matured coding style, use cool optimizations, and get better at refactoring code. Also a relatively dense code base with lots of moving parts so its fun to see what you can change and optimize to make it smaller and easy to read since this is defo not easy to read.

Pacman is a classic arcade game developed by Namco in 1980. It has since become one of the most iconic and recognizable video games in history. The game features a yellow, circular character called Pacman, who must navigate through a maze, consuming pellets while avoiding colorful ghosts. This game currently features 5 levels that get progressively harder, try to beat them all!

How to Play

  • Use the arrow keys (Up, Down, Left, Right) to navigate Pacman through the maze.
  • The objective is to eat all the dots while avoiding the ghosts.
  • Be careful! If a ghost catches Pacman, you lose.

Prerequisites

Before running the program, ensure you have pygame installed. You can install these libraries using pip, make sure python is installed on your machine:

pip install pygame

Getting Started

  1. Clone this repository to your local machine:
git clone https://github.com/RajPandya737/Pacman.git
  1. Change to the project directory:
cd Pacman/Pacman
  1. Run the program:
python main.py

About

Recreation of the classic arcade game "Pacman" using Pygame. The game incorporates a Breadth-First Search (BFS) for ghost traversal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages