collinhover / impactplusplus

Impact++ is a collection of additions to ImpactJS with full featured physics, dynamic lighting, UI, abilities, and more.
http://collinhover.github.com/impactplusplus
MIT License
276 stars 59 forks source link

Added a click/touch directional pad to impact++. #157

Closed lamphj closed 10 years ago

lamphj commented 10 years ago

This is an alternative to the holdToMove and is managed by the PlayerManager. An example can be found in the jumpandrun example by uncommenting the section in the config-user.js

The dpad is placed on the screen when you do a holding touch and start to swipe in a direction, This should allow for you to control the player with one hand and use the other to tap to fire on the screen, without your fingers getting in the way of the view. And of course when you release the holding touch/click the dpad disappears from view.

Pattentrick commented 10 years ago

This looks awesome!

collinhover commented 10 years ago

@lamphj this is super cool, thanks for the contribution! One request, can you rename it to UIDpad to keep it in line with the other ui elements?

lamphj commented 10 years ago

Thanks, I'm glad you guys like it. I just pushed the UIDpad rename.