Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

RoundScreen

RoundScreen(props): Element | null

Opens over the round once it is won or lost: the level in a game with levels, a title and text a game can replace, the score where the round has a target, and a button under the pane that starts the round again, beside any of the game’s own. Draws nothing until the round ends. It titles every loss “Out of time”; a game that fails a round for another reason reads it from useRound() and passes its own lostTitle.

Parameter Type
props RoundScreenProps

Element | null