Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.91 KB

readme.md

File metadata and controls

47 lines (28 loc) · 1.91 KB

Pacman Game

This is a simple Pacman game implemented using Java Swing, a graphical user interface toolkit for Java. The game aims to recreate the classic Pacman arcade experience where the player controls Pacman, a yellow circular character, and tries to eat all the dots while avoiding ghosts.

Demo

Pacman demo

Getting Started

To run the Pacman game, make sure you have the following requirements:

  1. Java Development Kit (JDK) installed on your system.
  2. A Java IDE (Integrated Development Environment) or any text editor to compile and run the Java code.

How to Play

  1. Clone or download the source code from the repository.
  2. Open the Java IDE or text editor of your choice and navigate to the project folder.
  3. Compile and run the pacman.App file to start the game.

Game Controls

  • Use the arrow keys (up, down, left, right) to move Pacman in the corresponding directions.
  • Try to eat all the dots on the board to complete the level.
  • Avoid colliding with the ghosts, as this will result in losing a life.
  • The game ends when pac collides with any ghost.

Game Features

  • Pacman: The main player character represented by a yellow circular shape.
  • Dots: Small white dots scattered throughout the board for Pacman to eat.
  • Ghosts: Enemy characters represented by colored shapes that chase Pacman.
  • Levels: The game current support only one level.

Contributions

Feel free to contribute to this project by submitting bug fixes, improvements, or new features. Fork the repository, make your changes, and submit a pull request.

Acknowledgments

This Pacman game is inspired by the classic arcade game "Pacman," created by Namco.

License

This project is licensed under the GNU License. Feel free to use, modify, and distribute the code as long as the license terms are followed.