Skip to content

greenturtlefrank/Pacman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pacman Game (2021 IP1 Final Project)

This is a classic Pacman game developed based on the Allegro 5 game engine.

Controls

1. In-Game Scene

  • Movement: Use W (Up), A (Left), S (Down), and D (Right) to control Pacman.
  • Developer Tools (Debug use only):
    • C Key: Cheat Mode.
    • G Key: Debug Mode.

2. Menu & Settings

  • Start Game: Press ENTER on 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.
  • 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.
  • Quit Game: Press ESC on the main menu.

3. Ending Scenes

  • Game Over: Press ENTER to 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.

Game Target

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.

Technical Setup

  • Language: C
  • Game Engine: Allegro 5.2.10.0 (Aready included in the CMake)
  • Enviroment: AMD x64

Project Structure

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors