Skip to content

enhancement: Add live sidebar scoreboard showing player rankings during race #100

@TheMeinerLP

Description

@TheMeinerLP

Description

There is no sidebar scoreboard during a race. Players have no awareness of their position relative to others. A live ranking display (standard Minecraft sidebar objective) is essential for the Mario Kart-style competitive feel.

Acceptance Criteria

  • A sidebar scoreboard is shown to all players during the Game phase
  • Scoreboard updates every second (not every tick — 20 Hz sidebar writes cause client flicker)
  • Displayed info per row: rank, player name, rings passed / total rings, cup points
  • Scoreboard is cleared when the Game phase ends
  • Works correctly with 2–8 players simultaneously

Technical Details

  • Use Minestom's `Scoreboard` / `Sidebar` API
  • Update driver: a 20-tick (1 s) interval in `GamePhase.tick()` or a dedicated `ScoreboardSystem`
  • Sort players by `ScoreComponent.ringsHit` descending; tie-break by time of last ring pass
  • Remove `ScoreDisplaySystem`'s actionbar write once this scoreboard is active (consolidate HUD)

Dependencies

Estimate

M

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions