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.
To run the Pacman game, make sure you have the following requirements:
- Java Development Kit (JDK) installed on your system.
- A Java IDE (Integrated Development Environment) or any text editor to compile and run the Java code.
- Clone or download the source code from the repository.
- Open the Java IDE or text editor of your choice and navigate to the project folder.
- Compile and run the
pacman.App
file to start the game.
- 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.
- 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.
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.
This Pacman game is inspired by the classic arcade game "Pacman," created by Namco.
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.