fixing words

pull/399/head
Tom Arra 3 years ago
parent e031605a84
commit 2f7aee5a7d

@ -37,7 +37,7 @@ class Slingshot extends BodyComponent with InitialPosition {
}) : _angle = angle,
super(
children: [
_SlinghsotSpriteComponent(spritePath, angle: angle),
_SlingshotSpriteComponent(spritePath, angle: angle),
BumpingBehavior(strength: 20),
],
renderBody: false,
@ -90,8 +90,8 @@ class Slingshot extends BodyComponent with InitialPosition {
}
}
class _SlinghsotSpriteComponent extends SpriteComponent with HasGameRef {
_SlinghsotSpriteComponent(
class _SlingshotSpriteComponent extends SpriteComponent with HasGameRef {
_SlingshotSpriteComponent(
String path, {
required double angle,
}) : _path = path,

@ -54,7 +54,7 @@ void main() {
);
flameTester.test(
'deafaults to zero '
'defaults to zero '
'when no initialPosition is given',
(game) async {
final component = TestBodyComponent();

@ -129,7 +129,7 @@ void main() {
},
);
String? submitedInitials;
String? submittedInitials;
flameTester.testGameWidget(
'submits the initials',
setUp: (game, tester) async {
@ -138,7 +138,7 @@ void main() {
score: 1000,
characterIconPath: game.characterIconPath,
onSubmit: (value) {
submitedInitials = value;
submittedInitials = value;
},
);
await game.pump(component);
@ -147,7 +147,7 @@ void main() {
await tester.pump();
},
verify: (game, tester) async {
expect(submitedInitials, equals('AAA'));
expect(submittedInitials, equals('AAA'));
},
);

Loading…
Cancel
Save