From 90d4a4dc4a7a11fb8759f9c00e16d8f26b6a6b80 Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Wed, 16 Mar 2022 17:09:36 +0100 Subject: [PATCH] chore: analysis fixes --- lib/game/pinball_game.dart | 2 +- test/game/components/ball_test.dart | 4 ++-- test/game/components/pathway_test.dart | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index 0abb13b1..c5780829 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -42,7 +42,7 @@ class PinballGame extends Forge2DGame await _addGameBoundaries(); unawaited(_addPlunger()); - //unawaited(_addPaths()); + unawaited(_addPaths()); // Corner wall above plunger so the ball deflects into the rest of the // board. diff --git a/test/game/components/ball_test.dart b/test/game/components/ball_test.dart index a01b7459..1da1bcaa 100644 --- a/test/game/components/ball_test.dart +++ b/test/game/components/ball_test.dart @@ -74,7 +74,7 @@ void main() { flameTester.test( 'has default filter maskBits', (game) async { - final ball = Ball(position: Vector2.zero()); + final ball = Ball(); await game.ensureAdd(ball); final fixture = ball.body.fixtures[0]; @@ -158,7 +158,7 @@ void main() { (game) async { const newLayer = Layer.jetpack; - final ball = Ball(position: Vector2.zero()); + final ball = Ball(); await game.ensureAdd(ball); final fixture = ball.body.fixtures[0]; diff --git a/test/game/components/pathway_test.dart b/test/game/components/pathway_test.dart index 7b546995..7fb7b4e5 100644 --- a/test/game/components/pathway_test.dart +++ b/test/game/components/pathway_test.dart @@ -131,7 +131,6 @@ void main() { 'has default filter categoryBits when not modified', (game) async { final pathway = Pathway.straight( - position: Vector2.zero(), start: Vector2(10, 10), end: Vector2(20, 20), width: width, @@ -154,7 +153,6 @@ void main() { (game) async { const layer = Layer.jetpack; final pathway = Pathway.straight( - position: Vector2.zero(), start: Vector2(10, 10), end: Vector2(20, 20), width: width,