refactor: use board center for positioning

pull/96/head
Allison Ryan 4 years ago
parent 030fdc67e1
commit db54badc47

@ -65,7 +65,7 @@ class PinballGame extends Forge2DGame
Future<void> _addPlunger() async {
plunger = Plunger(compressionDistance: 29)
..initialPosition = Vector2(41.5, -49);
..initialPosition = boardBounds.center.toVector2() + Vector2(41.5, -49);
await add(plunger);
}

Loading…
Cancel
Save