fix: merge axis adjustments

pull/185/head
Allison Ryan 3 years ago
parent de354e9355
commit 497041b69c

@ -16,7 +16,7 @@ class Launcher extends Forge2DBlueprint {
@override @override
void build(Forge2DGame gameRef) { void build(Forge2DGame gameRef) {
plunger = ControlledPlunger(compressionDistance: 12.3) plunger = ControlledPlunger(compressionDistance: 12.3)
..initialPosition = Vector2(40.1, -38); ..initialPosition = Vector2(40.1, 38);
final _rocket = RocketSpriteComponent()..position = Vector2(43, 62); final _rocket = RocketSpriteComponent()..position = Vector2(43, 62);

@ -25,7 +25,7 @@ class LaunchRamp extends Forge2DBlueprint {
..initialPosition = Vector2(0.6, -34); ..initialPosition = Vector2(0.6, -34);
final launchRampCloseWall = _LaunchRampCloseWall() final launchRampCloseWall = _LaunchRampCloseWall()
..initialPosition = Vector2(4, -66.5); ..initialPosition = Vector2(4, -69.5);
addAll([ addAll([
launchRampBase, launchRampBase,
@ -216,12 +216,12 @@ class _LaunchRampForegroundRailingSpriteComponent extends SpriteComponent
class _LaunchRampCloseWall extends BodyComponent with InitialPosition, Layered { class _LaunchRampCloseWall extends BodyComponent with InitialPosition, Layered {
_LaunchRampCloseWall() { _LaunchRampCloseWall() {
layer = Layer.board; layer = Layer.board;
// renderBody = false; renderBody = false;
} }
@override @override
Body createBody() { Body createBody() {
final shape = EdgeShape()..set(Vector2.zero(), Vector2(0, 4)); final shape = EdgeShape()..set(Vector2.zero(), Vector2(0, 3));
final fixtureDef = FixtureDef(shape); final fixtureDef = FixtureDef(shape);

Loading…
Cancel
Save