mirror of https://github.com/flutter/pinball.git
parent
85936df74e
commit
64d4677b3f
@ -1,12 +1,10 @@
|
|||||||
import 'package:flame_bloc/flame_bloc.dart';
|
import 'package:flame_bloc/flame_bloc.dart';
|
||||||
import 'package:flame_forge2d/flame_forge2d.dart';
|
import 'package:flame_forge2d/flame_forge2d.dart';
|
||||||
|
|
||||||
import 'package:pinball/game/game.dart';
|
import 'package:pinball/game/game.dart';
|
||||||
|
|
||||||
class PinballGame extends Forge2DGame with FlameBloc {
|
class PinballGame extends Forge2DGame with FlameBloc {
|
||||||
@override
|
@override
|
||||||
Future<void> onLoad() async {
|
Future<void> onLoad() async {
|
||||||
await super.onLoad();
|
|
||||||
addContactCallback(BallScorePointsCallback());
|
addContactCallback(BallScorePointsCallback());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue