|
|
@ -2,8 +2,6 @@ import 'package:flame/components.dart';
|
|
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class SpriteScalingBehavior extends Component with ParentIsA<SpriteComponent> {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Scales the ball's body and sprite according to its position on the board.
|
|
|
|
/// Scales the ball's body and sprite according to its position on the board.
|
|
|
|
class BallScalingBehavior extends Component with ParentIsA<Ball> {
|
|
|
|
class BallScalingBehavior extends Component with ParentIsA<Ball> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|