From 854267c1348874c8b740507549f39f18660fcf3d Mon Sep 17 00:00:00 2001 From: alestiago Date: Thu, 17 Mar 2022 08:27:40 +0000 Subject: [PATCH] refactor: used initialPosition API --- lib/game/components/board.dart | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/game/components/board.dart b/lib/game/components/board.dart index a4653aac..f7b80bd8 100644 --- a/lib/game/components/board.dart +++ b/lib/game/components/board.dart @@ -53,20 +53,17 @@ class _FlutterForest extends Component { // TODO(alestiago): adjust positioning once sprites are added. // TODO(alestiago): Use [NestBumper] instead of [RoundBumper] once provided. final smallLeftNest = RoundBumper( - position: position + Vector2(-4.8, 2.8), radius: 1, points: 10, - ); + )..initialPosition = position + Vector2(-4.8, 2.8); final smallRightNest = RoundBumper( - position: position + Vector2(0.5, -5.5), radius: 1, points: 10, - ); + )..initialPosition = position + Vector2(0.5, -5.5); final bigNest = RoundBumper( - position: position, radius: 2, points: 20, - ); + )..initialPosition = position; await addAll([ smallLeftNest,