feat: modified test to match new center

pull/15/head
alestiago 4 years ago
parent e5abb01368
commit 89ea382a37

@ -187,7 +187,7 @@ void main() {
final flipperAnchor = FlipperAnchor(flipper: flipper); final flipperAnchor = FlipperAnchor(flipper: flipper);
await game.ensureAdd(flipperAnchor); await game.ensureAdd(flipperAnchor);
expect(flipperAnchor.body.position.x, equals(0)); expect(flipperAnchor.body.position.x, equals(-Flipper.width / 2));
}, },
); );
@ -204,7 +204,7 @@ void main() {
final flipperAnchor = FlipperAnchor(flipper: flipper); final flipperAnchor = FlipperAnchor(flipper: flipper);
await game.ensureAdd(flipperAnchor); await game.ensureAdd(flipperAnchor);
expect(flipperAnchor.body.position.x, equals(Flipper.width)); expect(flipperAnchor.body.position.x, equals(Flipper.width / 2));
}, },
); );
}, },

Loading…
Cancel
Save