|
|
@ -9,8 +9,10 @@ import 'package:pinball_audio/pinball_audio.dart';
|
|
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class _TestGame extends Forge2DGame {
|
|
|
|
class _TestGame extends Forge2DGame {
|
|
|
|
Future<void> pump(_TestBodyComponent child,
|
|
|
|
Future<void> pump(
|
|
|
|
{required PinballAudioPlayer player}) {
|
|
|
|
_TestBodyComponent child, {
|
|
|
|
|
|
|
|
required PinballAudioPlayer player,
|
|
|
|
|
|
|
|
}) {
|
|
|
|
return ensureAdd(
|
|
|
|
return ensureAdd(
|
|
|
|
FlameProvider<PinballAudioPlayer>.value(
|
|
|
|
FlameProvider<PinballAudioPlayer>.value(
|
|
|
|
player,
|
|
|
|
player,
|
|
|
|