From 6ed788576fc5ae57a588a9a9c7c33456931349e4 Mon Sep 17 00:00:00 2001 From: Jochum van der Ploeg Date: Tue, 26 Apr 2022 16:33:05 +0200 Subject: [PATCH] feat: add mobile touch controls --- test/game/pinball_game_test.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/game/pinball_game_test.dart b/test/game/pinball_game_test.dart index 85c28e2d..04746edc 100644 --- a/test/game/pinball_game_test.dart +++ b/test/game/pinball_game_test.dart @@ -223,7 +223,6 @@ void main() { ); game.onTapDown(tapDownEvent); - await game.ready(); expect(flippers.first.body.linearVelocity.y, isNegative); }); @@ -247,7 +246,6 @@ void main() { ); game.onTapDown(tapDownEvent); - await game.ready(); expect(flippers.first.body.linearVelocity.y, isNegative); }); @@ -271,7 +269,6 @@ void main() { ); game.onTapDown(tapDownEvent); - await game.ready(); expect(flippers.first.body.linearVelocity.y, isNegative); @@ -303,12 +300,10 @@ void main() { ); game.onTapDown(tapDownEvent); - await game.ready(); expect(flippers.first.body.linearVelocity.y, isNegative); game.onTapCancel(); - await game.ready(); expect(flippers.first.body.linearVelocity.y, isPositive); }); @@ -331,7 +326,6 @@ void main() { final plunger = game.descendants().whereType().first; game.onTapDown(tapDownEvent); - await game.ready(); expect(plunger.body.linearVelocity.y, equals(7)); }); @@ -349,7 +343,6 @@ void main() { final plunger = game.descendants().whereType().first; game.onTapDown(tapDownEvent); - await game.ready(); expect(plunger.body.linearVelocity.y, equals(7)); @@ -357,7 +350,6 @@ void main() { when(() => tapUpEvent.eventPosition).thenReturn(eventPosition); game.onTapUp(tapUpEvent); - await game.ready(); expect(plunger.body.linearVelocity.y, equals(0)); }); @@ -377,12 +369,10 @@ void main() { final plunger = game.descendants().whereType().first; game.onTapDown(tapDownEvent); - await game.ready(); expect(plunger.body.linearVelocity.y, equals(7)); game.onTapCancel(); - await game.ready(); expect(plunger.body.linearVelocity.y, equals(0)); });