From 84fa48f759305f369332305036643b528ca4bf35 Mon Sep 17 00:00:00 2001 From: Jochum van der Ploeg Date: Thu, 28 Apr 2022 14:46:08 +0200 Subject: [PATCH] feat: add mobile touch controls --- lib/game/pinball_game.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index 586a3226..008de17d 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -90,6 +90,7 @@ class PinballGame extends Forge2DGame final rocket = children.whereType().first; final bounds = rocket.topLeftPosition & rocket.size; + // NOTE(wolfen): As long as Flame does not have https://github.com/flame-engine/flame/issues/1586 we need to check it at the highest level manually. if (bounds.contains(info.eventPosition.game.toOffset())) { children.whereType().first.pull(); } else {