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; this.sprite = sprite;
size = sprite.originalSize; size = sprite.originalSize / 10;
} }
} }

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

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

Loading…
Cancel
Save