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( await add(
Pathway.arc( Pathway.arc(
color: const Color.fromARGB(255, 8, 218, 241), color: const Color.fromARGB(255, 8, 218, 241),
position: position, center: position,
width: _width, width: _width,
radius: _radius, radius: _radius,
angle: _angle, angle: _angle,

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

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

Loading…
Cancel
Save