DinoGame constructor

DinoGame({
  1. required Vector2 screenSize,
  2. required ThemeData theme,
})

Implementation

DinoGame({
  required this.screenSize,
  required this.theme,
}) : super(
          camera: CameraComponent.withFixedResolution(
        width: screenSize.x,
        height: screenSize.y,
      )) {
  instance = this;
}