The name of the DIV into which the game should be placed
The game configuration object
A function for building the first visible level of the game
A function to run before the builder runs. This is used by the book build system, and should be ()=>{} otherwise.
Platform-specific features. Defaults to HTML5
Start a game
NB: The
beforeBegin
method is only used when generating demos for the book, andplatform
is only used when deploying to mobile or desktop. If you need to useplatform
, then you can provide()=>{}
as the beforeBegin function.TODO: Pixi.js v8 strongly recommends using async/await.