feat: adjusted FlutterForest priorities

pull/234/head
alestiago 3 years ago
parent c912c36a69
commit 38d7bfa3fc

@ -7,13 +7,14 @@ import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_components.dart';
/// {@template flutter_forest}
/// Area positioned at the top right of the [Board] where the [Ball]
/// can bounce off [DashNestBumper]s.
/// Area positioned at the top right of the [Board] where the [Ball] can bounce
/// off [DashNestBumper]s.
/// {@endtemplate}
class FlutterForest extends Component {
/// {@macro flutter_forest}
FlutterForest()
: super(
priority: RenderPriority.flutterForest,
children: [
Signpost(
children: [

@ -10,7 +10,6 @@ class DashAnimatronic extends SpriteAnimationComponent with HasGameRef {
: super(
anchor: Anchor.center,
playing: false,
priority: RenderPriority.dashAnimatronic,
);
@override

@ -25,7 +25,6 @@ class DashNestBumper extends BodyComponent with InitialPosition {
}) : _majorRadius = majorRadius,
_minorRadius = minorRadius,
super(
priority: RenderPriority.dashBumper,
renderBody: false,
children: [
_DashNestBumperSpriteGroupComponent(

@ -69,11 +69,7 @@ abstract class RenderPriority {
// Flutter Forest
static const int signpost = _above + launchRampForegroundRailing;
static const int dashBumper = _above + ballOnBoard;
static const int dashAnimatronic = 2 * _above + launchRamp;
static const int flutterForest = _above + launchRampForegroundRailing;
// Sparky Fire Zone

@ -49,7 +49,6 @@ class Signpost extends BodyComponent with InitialPosition {
Signpost({
Iterable<Component>? children,
}) : super(
priority: RenderPriority.signpost,
renderBody: false,
children: [
_SignpostSpriteComponent(),

Loading…
Cancel
Save