AppConfig constructor

AppConfig({
  1. String canvasElement = "#gameCanvas",
  2. int gfxBatchCapacityInBytes = 65536,
  3. bool autoSuspend = true,
  4. bool autoRequestAccelerometerPermission = false,
  5. String title = "Bullseye2D",
  6. int width = 800,
  7. int height = 600,
  8. bool resizable = true,
  9. bool fullscreen = false,
})

Creates an instance of AppConfig with optional parameters.

Implementation

AppConfig({
  this.canvasElement = "#gameCanvas",
  this.gfxBatchCapacityInBytes = 65536,
  this.autoSuspend = true,
  this.autoRequestAccelerometerPermission = false,
  this.title = "Bullseye2D",
  this.width = 800,
  this.height = 600,
  this.resizable = true,
  this.fullscreen = false,
});