|
|
@ -1,7 +1,6 @@
|
|
|
|
import 'dart:ui';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:flame/components.dart';
|
|
|
|
import 'package:flame/components.dart';
|
|
|
|
import 'package:flame_forge2d/forge2d_game.dart';
|
|
|
|
import 'package:flame_forge2d/forge2d_game.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:pinball/flame/flame.dart';
|
|
|
|
import 'package:pinball/flame/flame.dart';
|
|
|
|
import 'package:pinball/game/game.dart';
|
|
|
|
import 'package:pinball/game/game.dart';
|
|
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
|
@ -51,6 +50,7 @@ class BallController extends ComponentController<Ball> {
|
|
|
|
/// Triggered by [BottomWallBallContactCallback] when the [Ball] falls into
|
|
|
|
/// Triggered by [BottomWallBallContactCallback] when the [Ball] falls into
|
|
|
|
/// a [BottomWall].
|
|
|
|
/// a [BottomWall].
|
|
|
|
/// {@endtemplate}
|
|
|
|
/// {@endtemplate}
|
|
|
|
|
|
|
|
@mustCallSuper
|
|
|
|
void lost() {
|
|
|
|
void lost() {
|
|
|
|
component.shouldRemove = true;
|
|
|
|
component.shouldRemove = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|