diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index 306d03f0..6bf24a20 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -1,3 +1,4 @@ +import 'package:flame_bloc/flame_bloc.dart'; import 'package:flame_forge2d/forge2d_game.dart'; -class PinballGame extends Forge2DGame {} +class PinballGame extends Forge2DGame with FlameBloc {} diff --git a/pubspec.lock b/pubspec.lock index 86f1fbe5..55901a4e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -133,14 +133,21 @@ packages: name: flame url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.1.0-releasecandidate.1" + flame_bloc: + dependency: "direct main" + description: + name: flame_bloc + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0-releasecandidate.1" flame_forge2d: dependency: "direct main" description: name: flame_forge2d url: "https://pub.dartlang.org" source: hosted - version: "0.8.3" + version: "0.9.0-releasecandidate.1" flutter: dependency: "direct main" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index f703cd22..2bd5be03 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,8 +8,9 @@ environment: dependencies: bloc: ^8.0.2 - flame: ^1.0.0 - flame_forge2d: ^0.8.3 + flame: ^1.1.0-releasecandidate.1 + flame_bloc: ^1.2.0-releasecandidate.1 + flame_forge2d: ^0.9.0-releasecandidate.1 flutter: sdk: flutter flutter_bloc: ^8.0.1