|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|