A simple Pacman game implemented in Java using Swing.
- Pacman with opening and closing mouth animation
- Multiple maps to choose from
- Enemy characters with different movement patterns
- Various upgrades (speed boost, extra life, double points, pass-through walls, etc.)
- High score management
- Java JDK 8 or higher
- An IDE or text editor (Eclipse, IntelliJ, VSCode, etc.)
-
Clone the repository:
-
Open the project in your IDE.
-
Run the
PacmanGame.javafile located in thesrc/controllerdirectory.
model- Contains the core game logic classes (Board,Character,Enemy,Player,Upgrade)view- Contains the graphical representation (BoardPanel)controller- Contains the main game class (PacmanGame) and input handling (PlayerMovementListener)util- Contains utility classes for managing high scores (HighScore,HighScoreManager)sprites- Contains image assets used in the gameres- Contains resource files, such ashighscores.txt
This project is licensed under the MIT License - see the LICENSE file for details.