Skip to content

Laksh711-tech/Pac-man-game-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pacman-using-python

🟡 Pacman Game (Python)

A fully playable recreation of the classic Pacman arcade game built with Python and Pygame. Navigate the maze, eat all the pellets, dodge the ghosts, and try to achieve the highest score possible!

✨ Features

🎮 Classic Pacman gameplay experience

👻 Ghost enemies with basic AI path movement

💛 Smooth player controls using arrow keys

🧮 Real-time scoring system

💥 Game Over and Win screens

🔁 Ability to restart the game after it ends

🔊 Sound effects and background music (optional if implemented)

Tech Stack

Language: Python

Library: Pygame (for rendering, events, collision detection, and audio)

📁 Project Structure

pacman-game/
│
├── main.py             # Main game loop and logic
├── assets/             # Sprites, images, and sound files
├── levels/             # Level layouts (optional)
├── README.md            # Project documentation
└── requirements.txt     # Python dependencies

🚀 Getting Started

Prerequisites

Python 3.x installed

Pygame library installed

Installation

Clone the repository:

git clone https://github.com/your-username/pacman-game.git
cd pacman-game

Install dependencies:

pip install -r requirements.txt

(or simply pip install pygame if requirements.txt is not provided)

Run the game:

python main.py

🕹️ How to Play

Use the Arrow Keys to move Pacman (⬆️⬇️⬅️➡️)

Collect all pellets to win

Avoid the ghosts — colliding with them will end the game

Your score increases as you collect pellets

📌 Future Improvements

🧠 Smarter ghost AI with pathfinding (A* or BFS)

💎 Power pellets that allow Pacman to eat ghosts

🎨 Multiple levels and maps

🌐 Leaderboard to track high scores

📱 Mobile or web-based version

🤝 Contributing

Contributions are welcome!

Fork the repository

Create a feature branch

Commit your changes

Submit a pull request

📄 License

This project is licensed under the MIT License . Feel free to use, modify, and distribute it.

💬 Acknowledgements

Inspired by the original Pac-Man (1980) arcade game by Namco

Built as a beginner-friendly Python game development project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages