fix: fixed conflict with merge Component position

pull/40/head
RuiAlonso 4 years ago
parent 74676700ea
commit d6f2cf9074

@ -28,7 +28,7 @@ class JetpackRamp extends Component with HasGameRef<PinballGame> {
await add(
Pathway.arc(
color: const Color.fromARGB(255, 8, 218, 241),
position: position,
center: position,
width: _width,
radius: _radius,
angle: _angle,

@ -29,7 +29,6 @@ class LauncherRamp extends Component with HasGameRef<PinballGame> {
await add(
Pathway.straight(
color: const Color.fromARGB(255, 34, 255, 0),
position: position,
start: Vector2(0, 0),
end: Vector2(0, 600),
width: 80,
@ -40,7 +39,7 @@ class LauncherRamp extends Component with HasGameRef<PinballGame> {
await add(
Pathway.arc(
color: const Color.fromARGB(255, 251, 255, 0),
position: position + Vector2(-28.8, -6),
center: position + Vector2(-28.8, -6),
radius: _radius,
angle: _angle,
width: _width,

@ -42,7 +42,7 @@ class PinballGame extends Forge2DGame
await _addGameBoundaries();
unawaited(_addPlunger());
unawaited(_addPaths());
//unawaited(_addPaths());
// Corner wall above plunger so the ball deflects into the rest of the
// board.

Loading…
Cancel
Save