Merge branch 'main' into chore/using-flutter-gen-assets

pull/73/head
Erick 4 years ago committed by GitHub
commit fa2ef760f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,9 +43,9 @@ 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(screenToWorld(boardSize / 2)) ..followVector2(Vector2.zero())
..zoom = size.y / 14; ..zoom = size.y / 14;
} }

Loading…
Cancel
Save