createGame
createGame(
options):Promise<Game>
Creates a game on a canvas and runs its plugins in order (renderer first, so others can use it).
const game = await createGame({ canvas, plugins: [webgl2(), input(), audio()] }), then game.scene(...) and game.start().
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<Game>
