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

Added Touch Support to Gumball game #190

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Arisamiga
Copy link

@Arisamiga Arisamiga commented Dec 22, 2023

Hello! :D

This Pull Request Adds Touch Support to the Gumball game.
Some mobile devices either don't support or have an undefined deviceorientation.

So I am adding touch support. It works the same way as keyboard event functions but uses the touchstart and touchend event listeners. The screen is split and if the person touches the left side of the screen it will tilt left and if it is the right side it will tilt right.

This solves the issue of #109 for gumball

@Arisamiga Arisamiga changed the title Added Touch Ability to Gumball game Added Touch Support to Gumball game Dec 22, 2023
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.

1 participant