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

finishLevel

finishLevel(world, options): void

Finishes the level being played with a win of score in seconds: the level reads as finished, which unlocks the next, and its best keeps the higher score and the fewer seconds, each on its own. Does nothing in a game that lists no levels. A round finishes its level as it is won.

Parameter Type
world World
options { score: number; seconds: number; }
options.score number
options.seconds number

void