RoyGame constructor

RoyGame({
  1. GameEventBus? eventBus,
  2. bool enablePlayableCharacter = false,
  3. bool showClassicDemo = true,
  4. String? arenaMapFileName,
  5. Future<Sprite> spriteLoader(
    1. String assetName
    )?,
  6. List<TerrainCollider> terrainColliders = const [],
})

Implementation

RoyGame({
  this.eventBus,
  this.enablePlayableCharacter = false,
  this.showClassicDemo = true,
  this.arenaMapFileName,
  this.spriteLoader,
  List<TerrainCollider> terrainColliders = const [],
}) : terrainColliders = List.of(terrainColliders) {
  images = Images();
}