@ -40,22 +40,22 @@ class _LaunchRampBase extends BodyComponent with Layered, ZIndex {
final rightStraightShape = EdgeShape ( )
final rightStraightShape = EdgeShape ( )
. . set (
. . set (
Vector2 ( 31 .4 , - 61.4 ) ,
Vector2 ( 31 , - 61.4 ) ,
Vector2 ( 46. 5 , 68.4 ) ,
Vector2 ( 46. 1 , 68.4 ) ,
) ;
) ;
final rightStraightFixtureDef = FixtureDef ( rightStraightShape ) ;
final rightStraightFixtureDef = FixtureDef ( rightStraightShape ) ;
fixturesDef . add ( rightStraightFixtureDef ) ;
fixturesDef . add ( rightStraightFixtureDef ) ;
final leftStraightShape = EdgeShape ( )
final leftStraightShape = EdgeShape ( )
. . set (
. . set (
Vector2 ( 27. 8 , - 61.4 ) ,
Vector2 ( 27. 4 , - 61.4 ) ,
Vector2 ( 41. 5 , 68.4 ) ,
Vector2 ( 41. 1 , 68.4 ) ,
) ;
) ;
final leftStraightFixtureDef = FixtureDef ( leftStraightShape ) ;
final leftStraightFixtureDef = FixtureDef ( leftStraightShape ) ;
fixturesDef . add ( leftStraightFixtureDef ) ;
fixturesDef . add ( leftStraightFixtureDef ) ;
final topCurveShape = ArcShape (
final topCurveShape = ArcShape (
center: Vector2 ( 20. 5 , - 61.1 ) ,
center: Vector2 ( 20. 1 , - 61.1 ) ,
arcRadius: 11 ,
arcRadius: 11 ,
angle: 1.6 ,
angle: 1.6 ,
rotation: 0.1 ,
rotation: 0.1 ,
@ -64,7 +64,7 @@ class _LaunchRampBase extends BodyComponent with Layered, ZIndex {
fixturesDef . add ( topCurveFixtureDef ) ;
fixturesDef . add ( topCurveFixtureDef ) ;
final bottomCurveShape = ArcShape (
final bottomCurveShape = ArcShape (
center: Vector2 ( 1 9.3 , - 60.3 ) ,
center: Vector2 ( 1 8.9 , - 60.3 ) ,
arcRadius: 8.5 ,
arcRadius: 8.5 ,
angle: 1.48 ,
angle: 1.48 ,
rotation: 0.1 ,
rotation: 0.1 ,
@ -74,16 +74,16 @@ class _LaunchRampBase extends BodyComponent with Layered, ZIndex {
final topStraightShape = EdgeShape ( )
final topStraightShape = EdgeShape ( )
. . set (
. . set (
Vector2 ( 3. 7 , - 70.1 ) ,
Vector2 ( 3. 3 , - 70.1 ) ,
Vector2 ( 1 9.1 , - 72.1 ) ,
Vector2 ( 1 8.7 , - 72.1 ) ,
) ;
) ;
final topStraightFixtureDef = FixtureDef ( topStraightShape ) ;
final topStraightFixtureDef = FixtureDef ( topStraightShape ) ;
fixturesDef . add ( topStraightFixtureDef ) ;
fixturesDef . add ( topStraightFixtureDef ) ;
final bottomStraightShape = EdgeShape ( )
final bottomStraightShape = EdgeShape ( )
. . set (
. . set (
Vector2 ( 3. 7 , - 66.9 ) ,
Vector2 ( 3. 3 , - 66.9 ) ,
Vector2 ( 1 9.1 , - 68.8 ) ,
Vector2 ( 1 8.7 , - 68.8 ) ,
) ;
) ;
final bottomStraightFixtureDef = FixtureDef ( bottomStraightShape ) ;
final bottomStraightFixtureDef = FixtureDef ( bottomStraightShape ) ;
fixturesDef . add ( bottomStraightFixtureDef ) ;
fixturesDef . add ( bottomStraightFixtureDef ) ;
@ -113,7 +113,7 @@ class _LaunchRampBaseSpriteComponent extends SpriteComponent with HasGameRef {
this . sprite = sprite ;
this . sprite = sprite ;
size = sprite . originalSize / 10 ;
size = sprite . originalSize / 10 ;
anchor = Anchor . center ;
anchor = Anchor . center ;
position = Vector2 ( 25. 6 5, 0.7 ) ;
position = Vector2 ( 25. 2 5, 0.7 ) ;
}
}
}
}
@ -131,7 +131,7 @@ class _LaunchRampBackgroundRailingSpriteComponent extends SpriteComponent
this . sprite = sprite ;
this . sprite = sprite ;
size = sprite . originalSize / 10 ;
size = sprite . originalSize / 10 ;
anchor = Anchor . center ;
anchor = Anchor . center ;
position = Vector2 ( 25. 6 , - 1.3 ) ;
position = Vector2 ( 25. 2 , - 1.3 ) ;
}
}
}
}
@ -149,14 +149,14 @@ class _LaunchRampForegroundRailing extends BodyComponent with ZIndex {
final rightStraightShape = EdgeShape ( )
final rightStraightShape = EdgeShape ( )
. . set (
. . set (
Vector2 ( 27. 6 , - 57.9 ) ,
Vector2 ( 27. 2 , - 57.9 ) ,
Vector2 ( 3 8.1 , 42.6 ) ,
Vector2 ( 3 7.7 , 42.6 ) ,
) ;
) ;
final rightStraightFixtureDef = FixtureDef ( rightStraightShape ) ;
final rightStraightFixtureDef = FixtureDef ( rightStraightShape ) ;
fixturesDef . add ( rightStraightFixtureDef ) ;
fixturesDef . add ( rightStraightFixtureDef ) ;
final curveShape = ArcShape (
final curveShape = ArcShape (
center: Vector2 ( 20. 1, - 59.3 ) ,
center: Vector2 ( 19.7 , - 59.3 ) ,
arcRadius: 7.5 ,
arcRadius: 7.5 ,
angle: 1.8 ,
angle: 1.8 ,
rotation: - 0.13 ,
rotation: - 0.13 ,
@ -166,8 +166,8 @@ class _LaunchRampForegroundRailing extends BodyComponent with ZIndex {
final topStraightShape = EdgeShape ( )
final topStraightShape = EdgeShape ( )
. . set (
. . set (
Vector2 ( 3. 7 , - 66.8 ) ,
Vector2 ( 3. 3 , - 66.8 ) ,
Vector2 ( 19. 7 , - 66.8 ) ,
Vector2 ( 19. 3 , - 66.8 ) ,
) ;
) ;
final topStraightFixtureDef = FixtureDef ( topStraightShape ) ;
final topStraightFixtureDef = FixtureDef ( topStraightShape ) ;
fixturesDef . add ( topStraightFixtureDef ) ;
fixturesDef . add ( topStraightFixtureDef ) ;
@ -198,6 +198,6 @@ class _LaunchRampForegroundRailingSpriteComponent extends SpriteComponent
this . sprite = sprite ;
this . sprite = sprite ;
size = sprite . originalSize / 10 ;
size = sprite . originalSize / 10 ;
anchor = Anchor . center ;
anchor = Anchor . center ;
position = Vector2 ( 22. 8 , 0.5 ) ;
position = Vector2 ( 22. 4 , 0.5 ) ;
}
}
}
}