Skip to content

"Classic arcade game app in Java. Navigate Pac-Man through mazes, eat pellets, avoid ghosts, and achieve high scores."

Notifications You must be signed in to change notification settings

Sherlyn02/pacman-java

Repository files navigation

Pacman Game App in Java

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.

Features

  • 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!

Getting Started

  1. Clone the repository:

    git clone https://github.com/Sherlyn02/pacman-java.git
    
  2. Compile the code:

    javac pacman.java
    
  3. Run the game:

    java pacman
    
  4. Controls:

    • Use the arrow keys (Up, Down, Left, Right) to navigate Pacman.

Gameplay

  • 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!

Dependencies

This project has no external dependencies. It uses standard Java libraries for graphics and user input.

Contributing

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.

License

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.

About

"Classic arcade game app in Java. Navigate Pac-Man through mazes, eat pellets, avoid ghosts, and achieve high scores."

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages