|
|
|
@ -5,10 +5,8 @@ import 'package:pinball_components/pinball_components.dart';
|
|
|
|
|
import 'package:sandbox/common/common.dart';
|
|
|
|
|
import 'package:sandbox/stories/ball/basic_ball_game.dart';
|
|
|
|
|
|
|
|
|
|
class BigDashNestBumperGame extends BasicBallGame {
|
|
|
|
|
BigDashNestBumperGame({
|
|
|
|
|
required this.trace,
|
|
|
|
|
}) : super(color: const Color(0xFF0000FF));
|
|
|
|
|
class BigDashNestBumperGame extends BasicBallGame with Traceable {
|
|
|
|
|
BigDashNestBumperGame() : super(color: const Color(0xFF0000FF));
|
|
|
|
|
|
|
|
|
|
static const info = '''
|
|
|
|
|
Shows how a BigDashNestBumper is rendered.
|
|
|
|
@ -16,8 +14,6 @@ class BigDashNestBumperGame extends BasicBallGame {
|
|
|
|
|
Activate the "trace" parameter to overlay the body.
|
|
|
|
|
''';
|
|
|
|
|
|
|
|
|
|
final bool trace;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<void> onLoad() async {
|
|
|
|
|
await super.onLoad();
|
|
|
|
@ -28,6 +24,6 @@ class BigDashNestBumperGame extends BasicBallGame {
|
|
|
|
|
..priority = 1;
|
|
|
|
|
await add(bigDashNestBumper);
|
|
|
|
|
|
|
|
|
|
if (trace) bigDashNestBumper.trace();
|
|
|
|
|
await traceAllBodies();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|