OptionalcanvasOptional CSS properties to apply to the canvas element
The desired height of the game viewport
OptionalpixelWhether to use pixel art optimized rendering
Root element containing the canvas
OptionalrootOptional CSS properties to apply to the root element
The desired width of the game viewport
Options for configuring the resize handler