An open API service indexing awesome lists of open source software.

https://github.com/alna0770/pacman


https://github.com/alna0770/pacman

algorithm-challenges game-development java pacman-game solving-problems

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

          

---


PAC-MAN Game


---

### **Introduction**
Welcome to the **Pac-Man Game**, a classic arcade experience recreated using **Java** and **Swing**. Navigate the maze, eat all the pellets, and avoid the spooky ghosts to win!

---

### **✨ Features**

- 🎮 **Play as Pac-Man**: Control Pac-Man to collect points and avoid dangers.
- đŸ‘ģ **Dynamic Ghosts**: Dodge the colorful ghosts patrolling the maze.
- 🏆 **Scoring System**: Earn points for every pellet eaten.
- đŸ•šī¸ **Simple Controls**: Navigate using arrow keys for an easy-to-learn, fun-to-play experience.
- 💀 **Challenge**: Survive as long as you can and beat your high score.

---

### **🎮 How to Play**

1. **Controls**:
- âŦ†ī¸ **Up Arrow**: Move up.
- âŦ‡ī¸ **Down Arrow**: Move down.
- âŦ…ī¸ **Left Arrow**: Move left.
- âžĄī¸ **Right Arrow**: Move right.

2. **Objective**:
- 🍒 Collect all food pellets to win.
- 🛑 Avoid ghosts at all costs!

3. **Game Over**:
- 💔 The game ends when Pac-Man loses all lives.

---


Ghost Icon

Getting Started


---

### **🔧 Prerequisites**

- **Java Development Kit (JDK)**: Version 8 or higher.
- **Java IDE**: Any IDE like IntelliJ IDEA, Eclipse, or VS Code.

---

### **🚀 Installation Guide**

1. **Clone the Repository**:
```bash
git clone https://github.com/your-username/pacman-game.git
cd pacman-game
```

2. **Assets**:
- Ensure these image files are available:
- `wall.png`
- `blueGhost.png`
- `orangeGhost.png`
- `pinkGhost.png`
- `redGhost.png`
- `pacmanUp.png`
- `pacmanDown.png`
- `pacmanLeft.png`
- `pacmanRight.png`

3. **Run the Game**:
- Open the project in your IDE.
- Compile and run the `PacMan` class.

---


Controller Icon

Gameplay Preview


Add screenshots or gameplay GIFs in this section to showcase the game.

---

### **đŸ› ī¸ Project Structure**

```
pacman-game/
│
├── src/ # Source code directory
│ ├── PacMan.java # Main game file
│ ├── (Other Java files if necessary)
│
├── resources/ # Game assets
│ ├── wall.png
│ ├── blueGhost.png
│ ├── orangeGhost.png
│ ├── pinkGhost.png
│ ├── redGhost.png
│ ├── pacmanUp.png
│ ├── pacmanDown.png
│ ├── pacmanLeft.png
│ ├── pacmanRight.png
│
├── README.md # Readme file
└── LICENSE # License file (optional)
```

---


Lightbulb Icon

Future Enhancements


- 🌟 **Smarter Ghost AI**: Implement pathfinding to chase Pac-Man.
- đŸŽ¯ **Power-Ups**: Add special items for temporary abilities.
- đŸ—ēī¸ **Levels**: Introduce multi-level gameplay with increased difficulty.
- 🔊 **Sound Effects**: Add sounds for a more immersive experience.

---

### **📜 License**

This project is licensed under the [MIT License](LICENSE).

---

### **👨‍đŸ’ģ Contributors**

- **Developer**: [Your Name](https://github.com/your-username)

Feel free to fork, star ⭐, or contribute to this project!

---


Thank You for Playing!