Skip to content

Java Swing desktop game inspired by Pac-Man, demonstrating GUI development, event handling, keyboard input, game loops, and 2D rendering in Java.

License

Notifications You must be signed in to change notification settings

ShreyaJ-27/PacMan

Repository files navigation

🟡 PAC-MAN

Java Swing Desktop Game



A Pac-Man inspired desktop game built using Java Swing, demonstrating GUI development, event handling, game loops, and 2D rendering in Java.

🎥 Gameplay Preview

Pac-Man Gameplay Preview

👾 Project Overview

This project is a Java Swing–based desktop application inspired by the classic Pac-Man game.
It showcases core software engineering and game development concepts, including:

  • Real-time 2D rendering using Java AWT
  • Keyboard input handling with event listeners
  • Continuous game loop for smooth animation
  • Object-oriented design and separation of concerns

The application runs locally on any Java-enabled system and is suitable for academic, portfolio, and learning purposes.

✨ Key Features

  • Smooth character movement with keyboard controls
  • Real-time screen rendering and updates
  • Lightweight, responsive desktop application
  • Cross-platform compatibility via the Java Virtual Machine
  • Clean and modular Java codebase

🛠 Technology Stack

Technology Usage
Java Core programming language
Java Swing GUI framework
Java AWT 2D graphics rendering
KeyListener Keyboard event handling

🗂 Project Structure

PacMan/
├── App.java        → Application entry point
├── PacMan.java     → Game logic and rendering
├── PacMan.mp4      → Original gameplay recording
├── PacMan.gif      → Autoplay gameplay preview
└── README.md

About

Java Swing desktop game inspired by Pac-Man, demonstrating GUI development, event handling, keyboard input, game loops, and 2D rendering in Java.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages