This project is a Java implementation of the classic Pac-Man game using JavaFX for the graphical interface. It's built with Maven for dependency management and project structure.
- Classic Pac-Man gameplay with unique power-ups
- JavaFX-based graphics
- 3 different game maps
- WASD controls for movement
- Java 17 or higher
- Maven (for dependency management and building)
All other dependencies will be handled by Maven.
-
Clone the repository:
git clone https://github.com/Sina-Hashemi/Pacman.git cd pacman -
Build the project using Maven:
mvn clean install
You can run the game using Maven or by opening the project in an IDE like VSCode or IntelliJ IDEA.
After building the project, run:
mvn clean javafx:run
- Open the project in your preferred IDE (VSCode, IntelliJ IDEA, etc.)
- Locate the main class file
- Run the main class file using the IDE's run functionality
-
Use WASD keys for movement:
- W: Move Up
- A: Move Left
- S: Move Down
- D: Move Right
-
Navigate through the maze, eat all the dots, and avoid the ghosts to complete each level.
-
Look out for special cherry power-ups that randomly appear on the map. These cherries can grant various temporary effects:
- Speed Boost: Increases Pac-Man's movement speed
- Ghost Freeze: Temporarily immobilizes all ghosts
- Ghost Invisibility: Makes ghosts temporarily invisible
The game features 3 different maps to add variety to your gameplay experience.
Contributions, suggestions, and feedback are welcome! Feel free to open an issue or submit a pull request.
Distributed under the MIT License. See LICENSE.txt for more information.
