Update lib/game/pinball_game.dart

Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
pull/74/head
Erick 4 years ago committed by GitHub
parent 10528ec7e1
commit fc97f5530f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,7 +41,7 @@ class PinballGame extends Forge2DGame
unawaited(_addPaths()); unawaited(_addPaths());
unawaited(addFromBlueprint(Spaceship())); unawaited(addFromBlueprint(Spaceship()));
// Fix camera on the center of the board size // Fix camera on the center of the board.
camera camera
..followVector2(Vector2.zero()) ..followVector2(Vector2.zero())
..zoom = size.y / 14; ..zoom = size.y / 14;

Loading…
Cancel
Save