playLevel
playLevel(
world,id):boolean
Makes id the level being played, if it is unlocked; false, and
nothing changes, if it is not. Throws for a level the game does not
list. The scene reads the level it builds from current.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
id |
string |
Returns
Section titled “Returns”boolean