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 Controls #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Jamibaraki
Copy link

I've added touch controls to the SpaceShooter demo. This has been tested on Android, but not iOS.

}

}
//return;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of this?

@carlesvallve
Copy link

In general clean implementation of first touch, but that arises a UX question:

  • How do you shoot?

For instance, I imagine more a:

  • swipe your finger anywhere to move left/right
  • tap your finger to shoot
  • long tap your finger to charge power, release to make a powered shot

how does it sound as a challenge?




//check for touches.. move ship towards first touch if present

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make sense to make a new function to handle all user input?

@ronkorving
Copy link

@Jamibaraki any updates or feedback?

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.

3 participants