Skip to content

Commit

Permalink
docs: Add events import in space shooter tutorial step_2 (#3231)
Browse files Browse the repository at this point in the history
DragUpdateInfo is included in the events package but is not in the docs.


When following the shooter tutorial I had issues cause the
DragUpdateInfo was undefined. upon further investigation I found that it
was in the event import instead

Co-authored-by: Lukas Klingsbo <[email protected]>
  • Loading branch information
TravisC671 and spydon authored Jul 21, 2024
1 parent 524793d commit 70806a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/tutorials/space_shooter/step_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use the `onPanUpdate` method. The updated code will look like the following:

```dart
import 'package:flame/input.dart';
import 'package:flame/events.dart';
class SpaceShooterGame extends FlameGame with PanDetector {
late Player player;
Expand Down

0 comments on commit 70806a8

Please sign in to comment.