GameRoundCounter

Methods

.effectCallback({ round, rounds, difficulty })
.define(tag, registry)
.subscribe(context, callback)

Displays the current round number and a progress bar. Observes game signals and adapts its display based on the type of director in use. Place inside a HUD container or give it a when-some-scene attribute as a direct shell child.

Display Modes

The counter adapts automatically depending on what round information is available in the game state:

Signal Access

Signal Usage
Shell signals Reads round, rounds, and difficulty signals

CSS Custom Properties

Property Default Description
--game-accent #fff Progress bar fill colour

Usage

<game-round-counter></game-round-counter>