asteroids-advanced icon indicating copy to clipboard operation
asteroids-advanced copied to clipboard

Mobile Compatibility

Open JonathanHHenson opened this issue 8 years ago • 3 comments

Make mobile friendly by:

  • [ ] Preventing scrolling (http://stackoverflow.com/questions/16637031/completely-disable-scrolling-of-webpage)
  • [ ] Making ship static in centre of screen on mobile site (World rotates rather than ship)
  • [ ] Ship thrusts dependent on device tilt
  • [ ] Adding touchscreen controls to mobile site:
    • [ ] Ship turns left when left side of screen touched and right when the right side is touched.
    • [ ] Fire laser Button

JonathanHHenson avatar Dec 20 '16 09:12 JonathanHHenson

I really dislike virtual buttons and pads on a touchscreen tho... I'd rather have some other kind of controls on mobile

NaveTK avatar Dec 20 '16 15:12 NaveTK

I just took a look at the docs for p5, and we can access the rotation of the mobile device, so we can use that

JonathanHHenson avatar Dec 20 '16 16:12 JonathanHHenson

I am fine with rotating to steer, the velocity could be touch based but we would still need buttons (maybe only two each at the bottom corners) for toggling the stabilizer and shooting.

MunWolf avatar Dec 22 '16 03:12 MunWolf