|
|
@ -62,6 +62,9 @@ class _SpaceshipRampBackground extends BodyComponent
|
|
|
|
with InitialPosition, Layered, ZIndex {
|
|
|
|
with InitialPosition, Layered, ZIndex {
|
|
|
|
_SpaceshipRampBackground()
|
|
|
|
_SpaceshipRampBackground()
|
|
|
|
: super(
|
|
|
|
: super(
|
|
|
|
|
|
|
|
/*paint: Paint()
|
|
|
|
|
|
|
|
..color = Colors.red
|
|
|
|
|
|
|
|
..strokeWidth = .3,*/
|
|
|
|
renderBody: false,
|
|
|
|
renderBody: false,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
_SpaceshipRampBackgroundRampSpriteComponent(),
|
|
|
|
_SpaceshipRampBackgroundRampSpriteComponent(),
|
|
|
@ -229,6 +232,9 @@ class SpaceshipRampBoardOpening extends BodyComponent
|
|
|
|
with Layered, ZIndex, InitialPosition {
|
|
|
|
with Layered, ZIndex, InitialPosition {
|
|
|
|
SpaceshipRampBoardOpening()
|
|
|
|
SpaceshipRampBoardOpening()
|
|
|
|
: super(
|
|
|
|
: super(
|
|
|
|
|
|
|
|
/*paint: Paint()
|
|
|
|
|
|
|
|
..color = Colors.amber
|
|
|
|
|
|
|
|
..strokeWidth = .3,*/
|
|
|
|
renderBody: false,
|
|
|
|
renderBody: false,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
_SpaceshipRampBoardOpeningSpriteComponent(),
|
|
|
|
_SpaceshipRampBoardOpeningSpriteComponent(),
|
|
|
@ -260,8 +266,8 @@ class SpaceshipRampBoardOpening extends BodyComponent
|
|
|
|
List<FixtureDef> _createFixtureDefs() {
|
|
|
|
List<FixtureDef> _createFixtureDefs() {
|
|
|
|
final topEdge = EdgeShape()
|
|
|
|
final topEdge = EdgeShape()
|
|
|
|
..set(
|
|
|
|
..set(
|
|
|
|
Vector2(-3.9, -1.2),
|
|
|
|
Vector2(-4.8, -1.2),
|
|
|
|
Vector2(3.8, -1.6),
|
|
|
|
Vector2(4.5, -1.6),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
final bottomEdge = EdgeShape()
|
|
|
|
final bottomEdge = EdgeShape()
|
|
|
|
..set(
|
|
|
|
..set(
|
|
|
@ -351,8 +357,11 @@ class _SpaceshipRampForegroundRailing extends BodyComponent
|
|
|
|
with InitialPosition, Layered, ZIndex {
|
|
|
|
with InitialPosition, Layered, ZIndex {
|
|
|
|
_SpaceshipRampForegroundRailing()
|
|
|
|
_SpaceshipRampForegroundRailing()
|
|
|
|
: super(
|
|
|
|
: super(
|
|
|
|
|
|
|
|
/*paint: Paint()
|
|
|
|
|
|
|
|
..color = Colors.red
|
|
|
|
|
|
|
|
..strokeWidth = .3,*/
|
|
|
|
renderBody: false,
|
|
|
|
renderBody: false,
|
|
|
|
children: [_SpaceshipRampForegroundRailingSpriteComponent()],
|
|
|
|
//children: [_SpaceshipRampForegroundRailingSpriteComponent()],
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
layer = Layer.spaceshipEntranceRamp;
|
|
|
|
layer = Layer.spaceshipEntranceRamp;
|
|
|
|
zIndex = ZIndexes.spaceshipRampForegroundRailing;
|
|
|
|
zIndex = ZIndexes.spaceshipRampForegroundRailing;
|
|
|
|