flame-engine / flame

A Flutter based game engine.
https://flame-engine.org
MIT License
8.98k stars 879 forks source link

docs: Fix step 2 of space shooter tutorial delta values #3200

Closed FlorianGrollich closed 2 weeks ago

FlorianGrollich commented 2 weeks ago

Description

There was a small code Error in Step 2 of the Space Shooter Tutorial

the onPanUpdate method looked like this 
  void onPanUpdate(DragUpdateInfo info) {
    player.move(info.delta.global);
  }

but it should look like this

  void onPanUpdate(DragUpdateInfo info) {
    player.move(info.delta.global);
  }

Checklist

Breaking Change?

Related Issues

Closes #3199