Skip to content
MaHmoudHaBlaSsPublic

About

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. ๐Ÿš€

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

ย 

History

191 Commits

Folders and files

Repository files navigation

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

  1. Clone the repository:
    git clone https://github.com/yourusername/pacman-game.git
    cd pacman-game
  2. Open the project in your IDE and ensure JavaFX is set up.
  3. Run the main class (Main.java).

๐Ÿ“ธ Gameplay

Youtube Video

๐Ÿค Contributors

โญ Acknowledgments

  • OOP Prenciples
  • JavaFX Community for tutorials and resources
  • Classic Pacman for inspiration ๐ŸŽฎ

Made by Java_Newbies Team.

About

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. ๐Ÿš€

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages