From f66f931202c8325d7af8aa3914e063065a52fce7 Mon Sep 17 00:00:00 2001 From: alestiago Date: Tue, 29 Mar 2022 09:31:09 +0100 Subject: [PATCH] feat: included priority value --- lib/game/pinball_game.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index dee41edb..b34ea7db 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -110,7 +110,9 @@ class DebugPinballGame extends PinballGame with TapDetector { sprite: sprite, size: Vector2(120, 160), anchor: Anchor.center, - )..position = Vector2(0, -7.8); + ) + ..position = Vector2(0, -7.8) + ..priority = -1; await add(spriteComponent); }