Description
The game has no singular state, it's currently determined by who is what. Game state updates should be broadcasted to all players so they know the game state has changed.
Features
- Add game states
Waiting, Active, Paused, Ended that are mutually exclusive.
- Admin panel controls when these states occur.
- States will be broadcasted to appropriate users and reflected on the frontend.
- If Pacman is tagged by a Ghost or Antipac the person who tagged Pacman is broadcasted and displayed on the frontend.
- When Pacman finds the FROSH flag there should be a broadcast that they're empowered.
- When a Ghost becomes Antipac the admin map should be updated to indicate something happened.
Waiting state
- Can be reached from any other state.
- These states can be assigned:
- Leader
- Pacman
- Ghost
- Hidden
- Game timers can be set.
Active state
- These states can be assigned:
- Game timer can't be adjusted.
Paused state
- Can only be reached from an
Active state.
- These states can be assigned:
- Game timer can be set.
Ended state
- Can only be reached from an
Active or Paused state.
- State occurs when one of the following conditions happen:
- Pacman is caught by a non-edible Ghost when not empowered.
- Pacman is caught by Antipac.
- All Ghosts are tagged by Pacman and Antipac doesn't exist.
- Timer has run out.
- Player states cannot be updated.
Description
The game has no singular state, it's currently determined by who is what. Game state updates should be broadcasted to all players so they know the game state has changed.
Features
Waiting,Active,Paused,Endedthat are mutually exclusive.WaitingstateActivestatePausedstateActivestate.EndedstateActiveorPausedstate.