eevee / lexys-labyrinth

Chip's Challenge 2 emulator that runs in a browser
https://c.eev.ee/lexys-labyrinth/
Other
76 stars 13 forks source link

Touch relative to viewport #91

Closed mruac closed 6 months ago

mruac commented 1 year ago

This PR functionally turns the entire viewport into a d-pad, which makes moving the character easier on mobile, rather than moving by tapping next to the character currently.

An option is made in the settings to allow the user to switch between the different move types for mobile. Doesn't affect desktop users I think. image

Fixes #89 - Not sure if the mobile user will need a separate d-pad since the entire viewport now functions as the d-pad.

Don't mind the merge commit because I had not matched the code formatting properly

eevee commented 6 months ago

hey, as the commit says, this was impractical to merge after i merged another PR that touched exactly the same code, but thank for the initial implementation, and hopefully it plays better now!

mruac commented 6 months ago

No worries - I haven't played for a while but glad that this is resolved. Hopefully I'll get around to playing this on the phone again sometime.