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.
20 lines
587 B
20 lines
587 B
import 'package:flame/components.dart';
|
|
import 'package:pinball_components/pinball_components.dart' hide Assets;
|
|
|
|
/// {@template launcher}
|
|
/// Channel on the right side of the board containing the [LaunchRamp],
|
|
/// [Plunger], and [RocketSpriteComponent].
|
|
/// {@endtemplate}
|
|
class Launcher extends Component {
|
|
/// {@macro launcher}
|
|
Launcher()
|
|
: super(
|
|
children: [
|
|
LaunchRamp(),
|
|
Flapper(),
|
|
Plunger()..initialPosition = Vector2(41, 43.7),
|
|
RocketSpriteComponent()..position = Vector2(42.8, 62.3),
|
|
],
|
|
);
|
|
}
|