Developed a Pac-Man game using Java and Swing, featuring classic gameplay mechanics, tunnel logic for seamless navigation, and enhanced visual elements.
Classic Gameplay: Navigate Pac-Man through a maze, eating pellets while avoiding ghosts. Ghost AI: Ghosts with distinct AI patterns for challenging gameplay. Tunnel logic: Players can seamlessly move between opposite sides of the maze through tunnels, ensuring smooth gameplay and dynamic movement.
Gameplay 🎮 Objective: Eat all the pellets in the maze while avoiding ghosts. Controls: Arrow keys to move Pac-Man. Scoring: Pellets: 10 points each.
Code Highlights 💻 Dynamic Maze Loader: The tileMap array allows easy customization of maze layouts. Ghost Behavior: Ghost AI logic simulates distinct movement patterns for a challenging experience.
Setup 🛠
Requirements
Java Development Kit (JDK) 8 or higher
An IDE (e.g., IntelliJ IDEA, Eclipse) or a text editor (e.g., VS Code)
Basic understanding of Java
Steps
Clone this repository:
bash
Copy code
git clone https://github.com/username/pacman-game.git
Open the project in your IDE or text editor.
Ensure all assets (images and audio) are in the correct resources folder.
Run the Main.java file to start the game.
Further Improvements Impleneting Power ups Scared Ghost Sound effects Tile Map generation for levels