-
Notifications
You must be signed in to change notification settings - Fork 4
Gameflow
Jeffrey Leung edited this page Sep 3, 2017
·
5 revisions
To understand Pac Macro as a way of life, see the official specification.
As of the moment, gameflow consists entirely of the following combination of administrative triggers and game change triggers.
- Game initialized or reset (manually triggered by administrative endpoint)
- Game state
INITIALIZING - All player states
UNINITIALIZED - All Pacdots
eaten == false
- Game state
- Game started (manually triggered by administrative endpoint)
- Game state changed from
INITIALIZINGtoIN_PROGRESS(required precondition) - All players with states
READYchanged toACTIVE(automatic) - No change to Pacdots
- Game state changed from
- Pacman eats a Pacdot (i.e. Pacman's location is updated to be near a Pacdot while the game state is
IN_PROGRESS)- No change to game state
- No change to player states
- The Pacdot within proximity changed to
eaten == true(automatic)
- Pacman eats a Powerdot (i.e. Pacman's location is updated to be near a Powerdot while the game state is
IN_PROGRESS)- No change to game state
- Pacman's state changed from
ACTIVEtoPOWERUPfor 60 seconds, then back toACTIVE(automatic) - The Powerdot within proximity changed to
eaten == true(automatic)
- Pacman eats all Pacdots and Powerdots
- Game state changed from
IN_PROGRESStoFINISHED_PACMAN_WIN(automatic) - No change to player states
- All Pacdots
eaten == true(required precondition)
- Game state changed from
- Pacman contacts a Ghost while Pacman is in the
ACTIVEstate and the Ghost is in theACTIVEstate (triggered by manual tag on mobile application by both players)- Game state is changed from
IN_PROGRESStoFINISHED_GHOSTS_WIN(automatic) - The Pacman's state is changed from
ACTIVEtoCAPTURED(automatic) - No change to Pacdots
- Game state is changed from
- Pacman contacts a Ghost while Pacman is in the
POWERUPstate and the Ghost is in theACTIVEstate (triggered by manual tag on mobile application by both players)- No change to game state
- The Ghost's state is changed from
ACTIVEtoCAPTURED(automatic) - No change to Pacdots