Pacman
A classic Pacman game built with Java and JavaFX, featuring smooth GUI, controlled ghosts, a scoring system, and immersive sound effects. Developed with OOP principles, it offers a fun and interactive gameplay experience. š
Install / Use
/learn @MaHmoudHaBlaSs/PacmanREADME
Pacman Game - JavaFX
š Overview
This is a Pacman game built using Java and JavaFX, applying object-oriented programming (OOP) principles, light data structures, and GUI development. The game follows the classic Pacman mechanics, where the player controls Pacman to collect pellets while avoiding ghosts.
š® Features
- Smooth GUI with JavaFX
- Classic Pacman gameplay mechanics
- Controlled ghosts with different behavior patterns
- Scoring system to track player progress
- Main menu & settings for customization
- Background music and sound effects
š ļø Technologies Used
- Java (Core logic and OOP design)
- JavaFX (GUI and animations)
- FXML (For structuring the UI)
- Git & GitHub (Version control and collaboration)
š Project Structure
Pacman-Game/
āāā Resources/ // Game assets and resources
āāā Character.java // Base class for all characters
āāā Direction.java // Manages movement directions
āāā GamePane.java // Handles game rendering
āāā GameSounds.java // Sound effects and background music
āāā Ghost.java // Controlled ghost behavior
āāā Main.java // Main entry point of the game
āāā Maze.java // Game maze logic
āāā MazeView.java // Maze rendering
āāā PacMan.java // Player-controlled Pacman logic
āāā Project Diagram.pdf // Game design and flowchart
š Getting Started
Prerequisites
- Java 11 or later
- JavaFX SDK (if using a version without built-in JavaFX)
- IDE like Eclipse or IntelliJ IDEA (recommended)
Installation & Running
- Clone the repository:
git clone https://github.com/yourusername/pacman-game.git cd pacman-game - Open the project in your IDE and ensure JavaFX is set up.
- Run the main class (
Main.java).
šø Gameplay
š¤ Contributors
- Mahmoud Gamal
- Abdullah Muhammed
- Mahmoud El-Baz
- Mahmoud Hamdy
- Abdullrahamn El-Hussainy
- Mazen Muhammed
- Ibrahim Ayman
- Osman El-Kinani
ā Acknowledgments
- OOP Prenciples
- JavaFX Community for tutorials and resources
- Classic Pacman for inspiration š®
Made by Java_Newbies Team.
