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

https://github.com/aliiakbarkhan/pacman-java-game

A classic PACMAN game developed in Java, inspired by Kenny Jim Coding's tutorial. Navigate through the maze, eat the pellets, and avoid the ghosts!
https://github.com/aliiakbarkhan/pacman-java-game

Last synced: 6 months ago
JSON representation

A classic PACMAN game developed in Java, inspired by Kenny Jim Coding's tutorial. Navigate through the maze, eat the pellets, and avoid the ghosts!

Awesome Lists containing this project

README

          


PacMan


GIF

A classic PACMAN game developed in Java, inspired by Kenny Jim Coding's tutorial. Navigate through the maze, eat the pellets, and avoid the ghosts!

---

## Table of Contents
- [Description](#description)
- [Features](#features)
- [Screenshots](#screenshots)
- [Installation](#installation)
- [How to Play](#how-to-play)
- [Technologies Used](#technologies-used)
- [Credits](#credits)

---

## Description
This project is a PACMAN game clone built with Java. The game involves a maze where PACMAN collects pellets and avoids ghosts. The game mechanics closely follow the classic arcade version, making it an enjoyable and nostalgic experience.

---

## Features
- 🕹️ **Classic PACMAN Gameplay**: Navigate through the maze while avoiding ghosts.
- 👻 **Ghost AI**: Ghosts chase PACMAN, making the game challenging.
- 🍒 **Collectibles**: Collect pellets to increase your score.
- 🎮 **Smooth Controls**: Simple keyboard controls for easy gameplay.
- 💻 **Responsive Design**: Runs smoothly on different screen sizes.

---

## Screenshots



![Start Screen](https://github.com/user-attachments/assets/5eff389b-25ba-4ce7-9c56-6c9f428eef8e)

---

## Installation

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

2. **Navigate to the Project Directory**:
```bash
cd pacman-game
```

3. **Compile the Java Files**:
```bash
javac src/*.java
```

4. **Run the Game**:
```bash
java src.Main
```

---

## How to Play

- **Controls**:
- Move PACMAN using the **arrow keys**:
- ⬆️ **Up**
- ⬇️ **Down**
- ⬅️ **Left**
- ➡️ **Right**

- **Objective**:
- Collect all the pellets in the maze.
- Avoid the ghosts (if they catch you, the game ends).

---

## Technologies Used
- **Java**: The primary language for game development.
- **Swing**: For GUI and rendering graphics.

---

## Credits

https://github.com/user-attachments/assets/af7a9530-cbef-4cb4-8f47-7d2a0691824d

- **Tutorial**: Inspired by Kenny Jim Coding's tutorial on YouTube.
- **Developer**: [Ali Akbar Khan](https://github.com/aliiakbarkhan)

---

Enjoy playing PACMAN! 👾