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

Precise and mobile controls with jump (#158) #164

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

MarcusLongmuir
Copy link
Contributor

@MarcusLongmuir MarcusLongmuir commented Jul 23, 2024

Resolves #158.

This PR:

  • Overhauls how the virtual joystick works to allow full 360 degree input and use PointerEvents which offer more precision than TouchEvent and also unifies across desktop and mobile usage.
  • Adds a Jump button to the virtual joystick.
  • Adds pinch-to-zoom on mobile.
  • Reduces camera lerping to avoid the input lag that users had issues with.
  • Resolves an issue where updating the hash in the window location whilst providing pointer input would cause a hitch in pointer events.

What kind of change does your PR introduce? (check at least one)

  • Feature
  • Refactor

Does your PR fulfill the following requirements?

  • The title references the corresponding issue # (if relevant)

@MarcusLongmuir MarcusLongmuir marked this pull request as draft July 23, 2024 14:04
@MarcusLongmuir MarcusLongmuir marked this pull request as ready for review July 23, 2024 15:50
@TheCodeTherapy TheCodeTherapy merged commit c5bc6e3 into main Jul 23, 2024
5 checks passed
@TheCodeTherapy TheCodeTherapy deleted the feature/mobile-controls branch July 23, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improved Mobile Controls
2 participants