Skip to content

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().

GameOptions

Promise<Game>