feat: added contact listener

pull/202/head
alestiago 3 years ago
parent 26ee4f7725
commit 82e8378cba

@ -36,6 +36,8 @@ class PinballGame extends Forge2DGame
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {
world.setContactListener(WorldContactListener());
unawaited(add(ScoreEffectController(this))); unawaited(add(ScoreEffectController(this)));
unawaited(add(gameFlowController = GameFlowController(this))); unawaited(add(gameFlowController = GameFlowController(this)));
unawaited(add(CameraController(this))); unawaited(add(CameraController(this)));

Loading…
Cancel
Save