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.
22 lines
694 B
22 lines
694 B
import 'package:flame/components.dart';
|
|
import 'package:pinball/game/components/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(),
|
|
ControlledPlunger(compressionDistance: 9.2)
|
|
..initialPosition = Vector2(41.2, 43.7),
|
|
RocketSpriteComponent()..position = Vector2(43, 62.3),
|
|
],
|
|
);
|
|
}
|