|
|
@ -39,7 +39,9 @@ class SpaceshipRamp extends Component {
|
|
|
|
_SpaceshipRampForegroundRailing(),
|
|
|
|
_SpaceshipRampForegroundRailing(),
|
|
|
|
SpaceshipRampBase()..initialPosition = Vector2(3.4, -42.5),
|
|
|
|
SpaceshipRampBase()..initialPosition = Vector2(3.4, -42.5),
|
|
|
|
_SpaceshipRampBackgroundRailingSpriteComponent(),
|
|
|
|
_SpaceshipRampBackgroundRailingSpriteComponent(),
|
|
|
|
SpaceshipRampArrowSpriteComponent(current: bloc.state.hits),
|
|
|
|
SpaceshipRampArrowSpriteComponent(
|
|
|
|
|
|
|
|
current: bloc.state.hits,
|
|
|
|
|
|
|
|
),
|
|
|
|
...?children,
|
|
|
|
...?children,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -434,10 +436,7 @@ class _SpaceshipRampForegroundRailingSpriteComponent extends SpriteComponent
|
|
|
|
@visibleForTesting
|
|
|
|
@visibleForTesting
|
|
|
|
class SpaceshipRampBase extends BodyComponent
|
|
|
|
class SpaceshipRampBase extends BodyComponent
|
|
|
|
with InitialPosition, ContactCallbacks {
|
|
|
|
with InitialPosition, ContactCallbacks {
|
|
|
|
SpaceshipRampBase()
|
|
|
|
SpaceshipRampBase() : super(renderBody: false);
|
|
|
|
: super(
|
|
|
|
|
|
|
|
renderBody: false,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void preSolve(Object other, Contact contact, Manifold oldManifold) {
|
|
|
|
void preSolve(Object other, Contact contact, Manifold oldManifold) {
|
|
|
|