This repository contains a simple Pacman Game App implemented in Java. The game is a recreation of the classic Pacman arcade game, where the player controls Pacman to navigate a maze, eat pellets, avoid ghosts, and clear the level.
- Intuitive keyboard controls: Use arrow keys to navigate Pacman through the maze.
- Pellets and Power Pellets: Collect all pellets in the maze to complete the level. Eating a Power Pellet allows Pacman to temporarily eat ghosts.
- Ghosts: Avoid the ghosts, or eat them when powered up by a Power Pellet.
- Scoring: Score points by eating pellets and ghosts. Challenge yourself to achieve a high score!
-
Clone the repository:
git clone https://github.com/Sherlyn02/pacman-java.git
-
Compile the code:
javac pacman.java
-
Run the game:
java pacman
-
Controls:
- Use the arrow keys (Up, Down, Left, Right) to navigate Pacman.
- Move Pacman through the maze, eating pellets and avoiding ghosts.
- Eating all pellets will complete the level and advance to the next maze.
- Eating a Power Pellet will give Pacman the ability to eat ghosts for a limited time.
- Be careful not to run into the ghosts when they are not vulnerable!
- The game ends when Pacman loses all lives. Try to achieve the highest score!
This project has no external dependencies. It uses standard Java libraries for graphics and user input.
Contributions are welcome! If you'd like to improve the game, add features, fix bugs, or enhance the code, feel free to submit a pull request.
This Pacman Game App is licensed under the MIT License.
Enjoy playing the Pacman Game App in Java! If you have any questions, issues, or suggestions, feel free to open an issue or contact us.