From c0f451b6f7559572b766dd8d492728419f6c7c9f Mon Sep 17 00:00:00 2001 From: Erick Date: Tue, 22 Mar 2022 17:03:33 -0300 Subject: [PATCH] fix: camera position (#74) * fix: camera position * Update lib/game/pinball_game.dart Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com> Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com> --- lib/game/pinball_game.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index c23fa095..e77a1f73 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -41,9 +41,9 @@ class PinballGame extends Forge2DGame unawaited(_addPaths()); unawaited(addFromBlueprint(Spaceship())); - // Fix camera on the center of the board size + // Fix camera on the center of the board. camera - ..followVector2(screenToWorld(boardSize / 2)) + ..followVector2(Vector2.zero()) ..zoom = size.y / 14; }