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

Bullets seem to occasionally miss the mousepointer. #12

Open
Sidaroth opened this issue Sep 28, 2019 · 1 comment
Open

Bullets seem to occasionally miss the mousepointer. #12

Sidaroth opened this issue Sep 28, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Sidaroth
Copy link
Owner

Sidaroth commented Sep 28, 2019

Two likely causes:

  • Phaser's pointermove event (or our storage of it) is not updating as expected.
  • The radians we return from direction.angle() is wrong. (Though it's seemingly correct elsewhere...)
@Sidaroth Sidaroth added the bug Something isn't working label Sep 28, 2019
@Sidaroth
Copy link
Owner Author

Direction vector is likely wrong due to the "offset" we add to avoid shooting from the center position of the sprite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant