From eb6886f88d5da9b2b13d0fe059ded0917c613188 Mon Sep 17 00:00:00 2001 From: alestiago Date: Fri, 22 Apr 2022 10:24:41 +0100 Subject: [PATCH] feat: modified turboCharge duration --- lib/game/components/controlled_ball.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/game/components/controlled_ball.dart b/lib/game/components/controlled_ball.dart index 6dab64a4..4f089a7c 100644 --- a/lib/game/components/controlled_ball.dart +++ b/lib/game/components/controlled_ball.dart @@ -63,7 +63,12 @@ class BallController extends ComponentController gameRef.read().add(const SparkyTurboChargeActivated()); component.stop(); - await Future.delayed(const Duration(seconds: 1)); + // TODO(alestiago): Refactor this hard coded duration once the following is + // merged: + // https://github.com/flame-engine/flame/pull/1564 + await Future.delayed( + const Duration(milliseconds: 2583), + ); component.resume(); await component.boost(Vector2(40, 110)); }