|
|
|
@ -1,13 +1,12 @@
|
|
|
|
|
import 'package:flame/components.dart';
|
|
|
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
|
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
|
|
|
|
|
|
export 'cubit/google_word_cubit.dart';
|
|
|
|
|
|
|
|
|
|
/// {@template google_word}
|
|
|
|
|
/// Loads all [GoogleLetter]s to compose a [GoogleWord].
|
|
|
|
|
/// {@endtemplate}
|
|
|
|
|
class GoogleWord extends PositionComponent with ZIndex {
|
|
|
|
|
class GoogleWord extends PositionComponent {
|
|
|
|
|
/// {@macro google_word}
|
|
|
|
|
GoogleWord({
|
|
|
|
|
required Vector2 position,
|
|
|
|
@ -21,7 +20,5 @@ class GoogleWord extends PositionComponent with ZIndex {
|
|
|
|
|
GoogleLetter(4)..position = Vector2(8.33, -0.75),
|
|
|
|
|
GoogleLetter(5)..position = Vector2(13.1, 1.72),
|
|
|
|
|
],
|
|
|
|
|
) {
|
|
|
|
|
zIndex = ZIndexes.decal;
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|