This is a self-proposed project by Wang Yufei for the COMP2611 course offered by HKUST in 2018 spring.
This is a two player pac-man game.
First player: wasd
Second player: ijkl
- Pacmans could not intersect each other
- Pacmans could acquire score by touching score point objects
- Any pacman that come into contact with a ghost will enter quiz mode
- Quiz mode
- Once on quiz mode, a question and 4 choices will appear, enter answer using 1234.
- If the answer is correct, the pacman triggering the quiz will be teleported into a cell without ghost
- If the answer is wrong, both pacmans will enter "shield mode", with the pacman triggering the quiz frozen in place until the shield_alert_time is reached
- Once on quiz mode, a question and 4 choices will appear, enter answer using 1234.
- Shield mode
- In shield mode, pacmans could intersect each other (this override rule 1)
- In shield mode, pacmans could pass through ghost freely (this override rule 3)
- End of Level
- The end of level is reached when all score points are collected
- The end of level would reset score points, score, and pacman positions
- End of Game
- The end of game is reached when level 2 is passed
- The winner of the game would be the player with the highest cumulative score in level 1 and 2