mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
903 B
31 lines
903 B
import 'package:flame/components.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:pinball/game/components/multiballs/behaviors/behaviors.dart';
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
/// {@template multiballs_component}
|
|
/// A [SpriteGroupComponent] for the multiball over the board.
|
|
/// {@endtemplate}
|
|
class Multiballs extends Component with ZIndex {
|
|
/// {@macro multiballs_component}
|
|
Multiballs()
|
|
: super(
|
|
children: [
|
|
Multiball.a(),
|
|
Multiball.b(),
|
|
Multiball.c(),
|
|
Multiball.d(),
|
|
MultiballsBehavior(),
|
|
],
|
|
) {
|
|
zIndex = ZIndexes.decal;
|
|
}
|
|
|
|
/// Creates a [Multiballs] without any children.
|
|
///
|
|
/// This can be used for testing [Multiballs]'s behaviors in isolation.
|
|
@visibleForTesting
|
|
Multiballs.test();
|
|
}
|