AppConfig constructor
Creates an instance of AppConfig with optional parameters.
canvasElement: The CSS selector for the HTML canvas. Defaults to"#gameCanvas".gfxBatchCapacityInBytes: The graphics batch capacity in bytes. Defaults to65536.autoSuspend: Whether the application should auto-suspend. Defaults totrue.autoRequestAccelerometerPermission: Auto request Accelerometer Permission on first user interaction. Defaults tofalse.
Implementation
AppConfig({
this.canvasElement = "#gameCanvas",
this.gfxBatchCapacityInBytes = 65536,
this.autoSuspend = true,
this.autoRequestAccelerometerPermission = false,
});