From 82e8378cbad5ef8d1fefaa524d6ca7cc25e61494 Mon Sep 17 00:00:00 2001 From: alestiago Date: Tue, 19 Apr 2022 13:08:29 +0100 Subject: [PATCH] feat: added contact listener --- lib/game/pinball_game.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index b9b6574a..102eeca9 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -36,6 +36,8 @@ class PinballGame extends Forge2DGame @override Future onLoad() async { + world.setContactListener(WorldContactListener()); + unawaited(add(ScoreEffectController(this))); unawaited(add(gameFlowController = GameFlowController(this))); unawaited(add(CameraController(this)));