load<T>(l: Promise): Asset

Add a new loader to wait for before starting the game.
load(new Promise((resolve, reject) => {
    // anything you want to do that stalls the game in loading state
    resolve("ok")
}))
kaplay logo

3001.0.0-alpha.18

Misc