Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Small Code Error on Step 2 in Space Shooter Example #3199

Closed
1 task done
FlorianGrollich opened this issue Jun 19, 2024 · 0 comments · Fixed by #3200
Closed
1 task done

Docs: Small Code Error on Step 2 in Space Shooter Example #3199

FlorianGrollich opened this issue Jun 19, 2024 · 0 comments · Fixed by #3200

Comments

@FlorianGrollich
Copy link
Contributor

What could be improved

In the Second Step in the Space Shooter Example, there is a small Error in the code:

The onPanUpdate method is shown like this:

 @override
  void onPanUpdate(DragUpdateInfo info) {
    player.move(info.delta.game);
  }

but it should be like this:

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

it is correctly shown when you press the Code button at the end to see the whole code
it is also correctly shown in the next steps

Why should this be improved

Because its wrong code :)

Risks

No response

More information

No response

Other

  • Are you interested in working on a PR for this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant