|
|
@ -7,7 +7,8 @@ import 'package:pinball/gen/assets.gen.dart';
|
|
|
|
/// A solid, [BodyType.dynamic] sphere that rolls and bounces along the
|
|
|
|
/// A solid, [BodyType.dynamic] sphere that rolls and bounces along the
|
|
|
|
/// [PinballGame].
|
|
|
|
/// [PinballGame].
|
|
|
|
/// {@endtemplate}
|
|
|
|
/// {@endtemplate}
|
|
|
|
class Ball extends BodyComponent<PinballGame> with InitialPosition, Layered {
|
|
|
|
class Ball extends BodyComponent<PinballGame>
|
|
|
|
|
|
|
|
with InitialPosition, Layered, Elevated {
|
|
|
|
/// {@macro ball}
|
|
|
|
/// {@macro ball}
|
|
|
|
Ball() {
|
|
|
|
Ball() {
|
|
|
|
// TODO(ruimiguel): while developing Ball can be launched by clicking mouse,
|
|
|
|
// TODO(ruimiguel): while developing Ball can be launched by clicking mouse,
|
|
|
|