From 7807f8649f7cb01082cbdc7bf0f76f98c40e591a Mon Sep 17 00:00:00 2001 From: alestiago Date: Tue, 8 Mar 2022 16:29:38 +0000 Subject: [PATCH] docs: improved doc comment --- lib/game/components/flipper.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/game/components/flipper.dart b/lib/game/components/flipper.dart index 908fdfce..1f3b13ce 100644 --- a/lib/game/components/flipper.dart +++ b/lib/game/components/flipper.dart @@ -75,12 +75,14 @@ class Flipper extends BodyComponent with KeyboardHandler { /// [onKeyEvent] method listens to when one of these keys is pressed. final List _keys; - /// Applies downward linear velocity to the [Flipper] to move it down. + /// Applies downward linear velocity to the [Flipper], moving it to its + /// resting position. void _moveDown() { body.linearVelocity = Vector2(0, -_speed); } - /// Applies upward linear velocity to the [Flipper] to move it up. + /// Applies upward linear velocity to the [Flipper], moving it to its highest + /// position. void _moveUp() { body.linearVelocity = Vector2(0, _speed); }