feat: PR suggestions

pull/160/head
Erick Zanardo 4 years ago
parent 35d72e0fe8
commit 5b17b3757c

@ -1,20 +1,25 @@
import 'dart:async';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:pinball_components/pinball_components.dart';
/// A [Component] that controls its game camera focus
class CameraController extends Component with HasGameRef, KeyboardHandler {
/// The camera position for the board
@visibleForTesting
static final gamePosition = Vector2(0, -7.8);
/// The camera position for the pinball panel
@visibleForTesting
static final backboardPosition = Vector2(0, -100.8);
/// The zoom value for the game mode
@visibleForTesting
late final double gameZoom;
/// The zoom value for the panel mode
@visibleForTesting
late final double backboardZoom;
@override

Loading…
Cancel
Save