fix: waited golden tests

pull/189/head
alestiago 3 years ago
parent 72a8f097b8
commit 8954e0bcab

@ -45,7 +45,9 @@ class Slingshot extends BodyComponent with InitialPosition {
super(
priority: 1,
children: [_SlinghsotSpriteComponent(spritePath, angle: angle)],
);
) {
renderBody = false;
}
final double _length;
@ -111,7 +113,10 @@ class _SlinghsotSpriteComponent extends SpriteComponent with HasGameRef {
String path, {
required double angle,
}) : _path = path,
super(angle: -angle);
super(
angle: -angle,
anchor: Anchor.center,
);
final String _path;

@ -18,6 +18,7 @@ void main() {
await game.addFromBlueprint(Boundaries());
game.camera.followVector2(Vector2.zero());
game.camera.zoom = 3.9;
await game.ready();
},
verify: (game, tester) async {
await expectLater(

@ -19,6 +19,7 @@ void main() {
await game.addFromBlueprint(DinoWalls());
game.camera.followVector2(Vector2.zero());
game.camera.zoom = 6.5;
await game.ready();
},
verify: (game, tester) async {
await expectLater(

@ -20,6 +20,7 @@ void main() {
setUp: (game, tester) async {
await game.addFromBlueprint(Slingshots());
game.camera.followVector2(Vector2.zero());
await game.ready();
},
verify: (game, tester) async {
await expectLater(

@ -17,6 +17,7 @@ void main() {
setUp: (game, tester) async {
await game.addFromBlueprint(SpaceshipRamp());
game.camera.followVector2(Vector2(-13, -50));
await game.ready();
},
verify: (game, tester) async {
await expectLater(

@ -47,6 +47,7 @@ void main() {
final position = Vector2(30, -30);
await game.addFromBlueprint(Spaceship(position: position));
game.camera.followVector2(position);
await game.ready();
},
verify: (game, tester) async {
await expectLater(

Loading…
Cancel
Save