Fixes Dino Walls

pull/505/head
Alvaro Almeida Freire Stivi 1 year ago
parent 56abc8daa7
commit 73e0627700
No known key found for this signature in database

@ -142,7 +142,7 @@ class _DinoTopWallTunnelSpriteComponent extends SpriteComponent
),
);
this.sprite = sprite;
size = sprite.originalSize;
size = sprite.originalSize / 10;
}
}

@ -38,9 +38,9 @@ void main() {
game.camera.moveTo(Vector2.zero());
game.camera.viewfinder.zoom = 6.5;
await game.ready();
await tester.pump();
},
verify: (game, tester) async {
await tester.pump();
await expectLater(
find.byGame<TestGame>(),
matchesGoldenFile('golden/dino_walls.png'),

@ -70,6 +70,7 @@ void main() {
flameTester.testGameWidget(
'closes bloc when removed',
setUp: (game, _) async {
await game.onLoad();
final bloc = _MockMultiballCubit();
whenListen(
bloc,
@ -80,6 +81,7 @@ void main() {
final multiball = Multiball.test(bloc: bloc);
await game.ensureAdd(multiball);
await game.ready();
},
verify: (game, _) async {
final multiball = game.descendants().whereType<Multiball>().single;

Loading…
Cancel
Save