Skip to content

Add game timers - #24

Merged
jbriones1 merged 9 commits into
mainfrom
9-add-game-timers
Sep 13, 2026
Merged

jbriones1 merged 9 commits into
mainfrom
9-add-game-timers

Conversation

@karyao

@karyao karyao commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #9

Description

Allow admin to start a game, default 20 minute timer, and show timer with player, leader, and admin of remaining game time.

  • Added POST /api/admin/start with an optional durationMinutes value
  • Uses a 20-minute default with no duration is supplied
  • Broadcasts game state to player, leader, admin and admin-control sockets on start, reset, flag capture every 30 seconds.
  • Adds a shared countdown component to the admin control panel.
  • Pacman empowerment will reduce active timer and cap remaining time to 10 minutes.

Demo

Screenshot 2026-09-13 at 12 20 43 PM Screenshot 2026-09-13 at 12 18 11 PM Screenshot 2026-09-13 at 12 18 25 PM Screenshot 2026-09-13 at 12 19 16 PM Screenshot 2026-09-13 at 12 19 34 PM

@karyao
karyao marked this pull request as draft September 13, 2026 03:39
  - track game phases with server-authoritative timestamps
  - expire active deadlines with stale-timer protection
  - add Antipac, reset, and synchronization timing helpers
  - include game state in map snapshots
  - add test cases
- added antipac empowerment for 10 min cap
- admin can start game from the panel, starting with a twenty-minute timer
- synchronize timer state across player, leader, and admin views every 30 min
- add test cases for api and frontend
- reorder admin buttons
@karyao
karyao marked this pull request as ready for review September 13, 2026 19:21
@karyao
karyao requested a review from jbriones1 September 13, 2026 19:21

@jbriones1 jbriones1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and looks good! Thank you.

@jbriones1
jbriones1 merged commit 280ac47 into main Sep 13, 2026
@jbriones1
jbriones1 deleted the 9-add-game-timers branch September 13, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add game timers

2 participants