fix: appease cspell

pull/452/head
Allison Ryan 3 years ago
parent d75bad5201
commit a82a7c116e

@ -4,8 +4,8 @@ import 'package:pinball_flame/pinball_flame.dart';
class AnimatronicLoopingBehavior extends TimerComponent class AnimatronicLoopingBehavior extends TimerComponent
with ParentIsA<SpriteAnimationComponent> { with ParentIsA<SpriteAnimationComponent> {
AnimatronicLoopingBehavior({ AnimatronicLoopingBehavior({
required double animationCooldown, required double animationCoolDown,
}) : super(period: animationCooldown); }) : super(period: animationCoolDown);
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {

@ -42,7 +42,7 @@ class FlutterForest extends Component with ZIndex {
)..initialPosition = Vector2(21.8, -46.75), )..initialPosition = Vector2(21.8, -46.75),
DashAnimatronic( DashAnimatronic(
children: [ children: [
AnimatronicLoopingBehavior(animationCooldown: 4), AnimatronicLoopingBehavior(animationCoolDown: 4),
], ],
)..position = Vector2(20, -66), )..position = Vector2(20, -66),
FlutterForestBonusBehavior(), FlutterForestBonusBehavior(),

@ -35,7 +35,7 @@ class SparkyScorch extends Component {
)..initialPosition = Vector2(-3.3, -52.55), )..initialPosition = Vector2(-3.3, -52.55),
SparkyAnimatronic( SparkyAnimatronic(
children: [ children: [
AnimatronicLoopingBehavior(animationCooldown: 3), AnimatronicLoopingBehavior(animationCoolDown: 3),
], ],
)..position = Vector2(-14, -58.2), )..position = Vector2(-14, -58.2),
SparkyComputer( SparkyComputer(

@ -28,7 +28,7 @@ void main() {
group('AnimatronicLoopingBehavior', () { group('AnimatronicLoopingBehavior', () {
test('can be instantiated', () { test('can be instantiated', () {
expect( expect(
AnimatronicLoopingBehavior(animationCooldown: 1), AnimatronicLoopingBehavior(animationCoolDown: 1),
isA<AnimatronicLoopingBehavior>(), isA<AnimatronicLoopingBehavior>(),
); );
}); });
@ -36,7 +36,7 @@ void main() {
flameTester.test( flameTester.test(
'can be added', 'can be added',
(game) async { (game) async {
final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1);
final animation = _MockSpriteAnimation(); final animation = _MockSpriteAnimation();
final spriteAnimationComponent = _TestSpriteAnimationComponent() final spriteAnimationComponent = _TestSpriteAnimationComponent()
..animation = animation; ..animation = animation;
@ -52,7 +52,7 @@ void main() {
flameTester.test( flameTester.test(
'onTick starts playing the animation', 'onTick starts playing the animation',
(game) async { (game) async {
final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1);
final spriteAnimationComponent = _TestSpriteAnimationComponent(); final spriteAnimationComponent = _TestSpriteAnimationComponent();
await game.ensureAdd(spriteAnimationComponent); await game.ensureAdd(spriteAnimationComponent);
await spriteAnimationComponent.add(behavior); await spriteAnimationComponent.add(behavior);
@ -67,7 +67,7 @@ void main() {
flameTester.test( flameTester.test(
'animation onComplete resets and stops playing the animation', 'animation onComplete resets and stops playing the animation',
(game) async { (game) async {
final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1);
final spriteAnimationComponent = DashAnimatronic(); final spriteAnimationComponent = DashAnimatronic();
await game.ensureAdd(spriteAnimationComponent); await game.ensureAdd(spriteAnimationComponent);
@ -86,7 +86,7 @@ void main() {
flameTester.test( flameTester.test(
'animation onComplete resets and starts the timer', 'animation onComplete resets and starts the timer',
(game) async { (game) async {
final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1);
final spriteAnimationComponent = DashAnimatronic(); final spriteAnimationComponent = DashAnimatronic();
await game.ensureAdd(spriteAnimationComponent); await game.ensureAdd(spriteAnimationComponent);

Loading…
Cancel
Save