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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
options |
{ score: number; seconds: number; } |
options.score |
number |
options.seconds |
number |
Returns
Section titled “Returns”void