Skip to content

Game states #5

@suiramdev

Description

@suiramdev

Summary

Behavior

  1. The game starts with a timer when it reaches the minimum required players. For the users who have times to join, this first timer will take time, but the game owner will be able to start directly the game from the scoreboard.
  2. Once the game is started, roles are picked, and the robbers will have a few minutes to hide from the cop before he places the jail and starts chasing.
  3. Then, the game occurs and restarts once the timer ends or the entire robber team is arrested.

Todos

Code

  • Define states
  • Game loop
    • Set players' role
    • go through the different states with a cooldown
  • Display the timer on UI
  • Display the current state on UI
  • End the game if all the robbers got arrested
  • Display the winners
  • Add the force start button to the scoreboard, see Leaderboard #12

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions