load options, with async set
resolves true, or false if there is no previous level
load the previous level.
With no level to go to this reports false WITHOUT loading anything, and
the promise form resolves false rather than rejecting: running out of
levels is an ordinary outcome, not an error.
While the game loop is running the load is deferred to a timer, so this returns before anything is in the world — see level.load.
Optionaloptions: LevelLoadOptions & { async?: false }
additional optional parameters
true if the previous level was loaded, false if there is none
load the previous level, and return a promise that settles once the level is in the world.
With no level to go to this reports
falseWITHOUT loading anything, and the promise form resolvesfalserather than rejecting: running out of levels is an ordinary outcome, not an error.