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

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

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

Loading…
Cancel
Save