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

MatchScreenProps

Property Type Default value Description
actions? ReactNode undefined The game’s own buttons, beside “Play again” below the pane, such as one that plays the next level.
children? ReactNode undefined More of the game’s own under the text, such as the coins banked.
defeatText? string "So close." Replaces the default line under the defeat title.
defeatTitle? string "Out of time" for a match that ran out of time, its reason "time"; "Defeat" for any other Replaces the title when the match ends in a defeat, whatever its reason.
drawText? string "Nobody won." Replaces the default line under the draw title.
drawTitle? string "Draw" Replaces “Draw” when the match ends in a draw.
noun? string "Level" What the game calls a level, in the line above the title that names the level and the count, such as “Level 2 of 4”. A game with no levels shows no line.
pause? boolean true Pauses the world while the screen is open. Off, the world steps on behind it, so a racer can coast past the line. A queued match never pauses it, since the match resets itself after its results.
victoryText? string "Nice run." Replaces the default line under the victory title.
victoryTitle? string "You won" Replaces “You won” when the match ends in a victory.