Skip to content

Game State broadcasts #6

Description

@jbriones1

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:
    • Antipac
    • Ghost
    • Hidden
  • Game timer can't be adjusted.

Paused state

  • Can only be reached from an Active state.
  • These states can be assigned:
    • Antipac
    • Ghost
    • Hidden
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions