RoyGame constructor
RoyGame({
- GameEventBus? eventBus,
- bool enablePlayableCharacter = false,
- bool showClassicDemo = true,
- String? arenaMapFileName,
- Future<
Sprite> spriteLoader(- String assetName
- 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();
}