jtc42 / monopong-ios-issues

Public issue tracker for Monopong iOS
1 stars 0 forks source link

Controller Support ? #1

Open vilakshankapoor16 opened 1 year ago

vilakshankapoor16 commented 1 year ago

Controller support would be pretty cool if possible especially with rumble/haptics

jtc42 commented 1 year ago

Controller support is very much on the roadmap. I actually started working on it at one point before realising I had my priorities out of order and I needed to make a viable game first.

I'll nudge it up to todo list. Thank you for being the first contributor on the public issue tracker!

vilakshankapoor16 commented 1 year ago

Woww! Great to hear that and I really enjoy MonoPong!! Thank You for making MonoPong. Its Beautiful :)

jtc42 commented 1 year ago

Note to self so I don't forget - This isn't as simple as adding in-game controls. You need to be able to navigate the UI too, which is a bit more complicated. Other than the title screen, all scenes can have the selected UI "position" described by either a corner, or "center". Title screen has a secret special case we'll need to handle.

Add both bumper/shoulder buttons, D-pad left/right, and maybe even face buttons as paddle movement options? This way you get one-handed controls for left and right handed, as well as 2-handed with bumpers, and 2-handed split between D-pad and face buttons.

Seems fairly straightforward code-wise, to implement controllers, see https://medium.com/@samdubois18/adding-controller-support-to-your-ios-app-a9b8308ce0b4. Only complications will be in adding a whole extra layer of selected states to the UI nodes.