|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:flame/components.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:pinball/game/components/google_word/behaviors/behaviors.dart';
|
|
|
|
|
import 'package:pinball/game/game.dart';
|
|
|
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
|
|
|
|
|
|
|
|
/// {@template google_word}
|
|
|
|
@ -12,12 +13,30 @@ class GoogleWord extends Component {
|
|
|
|
|
required Vector2 position,
|
|
|
|
|
}) : super(
|
|
|
|
|
children: [
|
|
|
|
|
GoogleLetter(0)..initialPosition = position + Vector2(-12.92, 1.82),
|
|
|
|
|
GoogleLetter(1)..initialPosition = position + Vector2(-8.33, -0.65),
|
|
|
|
|
GoogleLetter(2)..initialPosition = position + Vector2(-2.88, -1.75),
|
|
|
|
|
GoogleLetter(3)..initialPosition = position + Vector2(2.88, -1.75),
|
|
|
|
|
GoogleLetter(4)..initialPosition = position + Vector2(8.33, -0.65),
|
|
|
|
|
GoogleLetter(5)..initialPosition = position + Vector2(12.92, 1.82),
|
|
|
|
|
GoogleLetter(
|
|
|
|
|
0,
|
|
|
|
|
children: [ScoringBehavior(points: 5000)],
|
|
|
|
|
)..initialPosition = position + Vector2(-12.92, 1.82),
|
|
|
|
|
GoogleLetter(
|
|
|
|
|
1,
|
|
|
|
|
children: [ScoringBehavior(points: 5000)],
|
|
|
|
|
)..initialPosition = position + Vector2(-8.33, -0.65),
|
|
|
|
|
GoogleLetter(
|
|
|
|
|
2,
|
|
|
|
|
children: [ScoringBehavior(points: 5000)],
|
|
|
|
|
)..initialPosition = position + Vector2(-2.88, -1.75),
|
|
|
|
|
GoogleLetter(
|
|
|
|
|
3,
|
|
|
|
|
children: [ScoringBehavior(points: 5000)],
|
|
|
|
|
)..initialPosition = position + Vector2(2.88, -1.75),
|
|
|
|
|
GoogleLetter(
|
|
|
|
|
4,
|
|
|
|
|
children: [ScoringBehavior(points: 5000)],
|
|
|
|
|
)..initialPosition = position + Vector2(8.33, -0.65),
|
|
|
|
|
GoogleLetter(
|
|
|
|
|
5,
|
|
|
|
|
children: [ScoringBehavior(points: 5000)],
|
|
|
|
|
)..initialPosition = position + Vector2(12.92, 1.82),
|
|
|
|
|
GoogleWordBonusBehavior(),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|