load<T>(l: Promise): Asset<T>
Add a new loader to wait for before starting the game.
paraml- The loader to wait for.
load(new Promise((resolve, reject) => {
// anything you want to do that stalls the game in loading state
resolve("ok")
}))
returnsThe asset data.
sincev3000.0
groupAssets