This is a classic Pacman game developed based on the Allegro 5 game engine.
- Movement: Use
W(Up),A(Left),S(Down), andD(Right) to control Pacman. - Developer Tools (Debug use only):
CKey: Cheat Mode.GKey: Debug Mode.
- Start Game: Press
ENTERon the main menu. - Settings: Click the Gear icon in the top-right corner of the main menu using your mouse.
- Switch Maps (Settings Scene only):
- Press
1: Switch to the first map. - Press
2: Switch to the second map.
- Press
- Volume Control (Settings Scene only):
- Background Music (BGM): Press
, (<)to decrease and. (>)to increase. - Sound Effects (Effect): Press
← (Left Arrow)to decrease and→ (Right Arrow)to increase.
- Background Music (BGM): Press
- Quit Game: Press
ESCon the main menu.
- Game Over: Press
ENTERto return to the main menu. - Win:
- Press
ENTER: Proceed directly to the next map and start the game. - Press
SPACE: Return to the main menu.
- Press
To win the game, you must consume all items on the map (including regular beans). Special items include:
- Red Bean (P):
- Activates a 10-second Power-up period.
- Ghosts enter the FLEE state, allowing Pacman to consume them.
- Consuming a ghost during the FLEE state rewards 1000 points.
- White Bean (F):
- Grants a 10-second Speed Boost and bonus points.
- Language: C
- Game Engine: Allegro 5.2.10.0 (Aready included in the CMake)
- Enviroment: AMD x64
game.c: Core game logic and the main event loop.scene_game.c: Logic for the main game levels and collision detection.scene_menu.c: Handles the main menu, win, and game over scenes.scene_settings.c: Handles volume adjustments and map selection settings.Assets/: Contains images and audio files.