Skip to content

Kiln API / kiln/browser / boot

Function: boot() ​

ts
function boot(main, canvasArg?): Promise<App | undefined>;

Starts the game in the browser and wires up hot reload. Returns the running app.

Parameters ​

ParameterType
mainMainFn
canvasArg?HTMLCanvasElement | null

Returns ​

Promise<App | undefined>