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
- Host: GitHub
- URL: https://github.com/alna0770/pacman
- Owner: ALNA0770
- Created: 2024-11-28T11:34:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T11:58:20.000Z (over 1 year ago)
- Last Synced: 2025-10-30T01:21:57.228Z (9 months ago)
- Topics: algorithm-challenges, game-development, java, pacman-game, solving-problems
- Language: Java
- Homepage:
- Size: 2.99 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
---
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.
---
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)
```
---
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!