
Pac-Man Clone
Project Title:
Pac-Man Clone using C
Project Overview:
This project is a recreation of the classic Pac-Man arcade game, built using C and a graphics library like SDL or a terminal-based approach. The player controls Pac-Man in a maze, collecting dots while avoiding ghosts.
Key Features:
- Maze Navigation: Pac-Man moves through a grid-like maze collecting points (dots).
- Ghost AI: Multiple enemy ghosts with basic AI to chase or avoid the player.
- Power Pellets: Temporary ability to eat ghosts after collecting special pellets.
- Lives & Score Tracking: Player starts with limited lives and earns points by eating dots and ghosts.
- Level Progression: Advance to new levels after clearing all dots.
- Game Over State: Occurs when all lives are lost.
Technologies Used:
- C Language: Handles game logic, movement, and collision.
- SDL or ncurses: For graphical or terminal-based rendering.
- 2D Arrays: Represent the game map (walls, dots, player, ghosts).
- Structs and Functions: Manage different game entities like Pac-Man and ghosts.
Learning Outcomes:
- Understanding of grid-based game logic.
- Implementation of real-time user input.
- Handling AI movement and decision-making for enemies.
- Managing game states like win, lose, and level-up.
- Practice with structured and modular programming in C.
Possible Enhancements:
- Smarter ghost AI (mimic original behavior: chase, scatter, etc.).
- Animated sprites and sound effects.
- High score leaderboard.
- Pause/resume functionality.
- Custom maze or level editor.