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

Can't start a level by touch on an Android tablet #93

Closed PixievoltNo1 closed 6 months ago

PixievoltNo1 commented 1 year ago

I'd love to play this on my tablet, but once I load a level pack and am presented with a level, there is no Play button and the game board does not respond to the touchscreen. If I connect a keyboard and start the level that way, the touchscreen works fine until the next level. I'm experiencing this on both Firefox and Samsung Internet (a Chrome-ish browser).

PixievoltNo1 commented 1 year ago

I've had a look through the code and I can see how it can be done - check in this touch handler if we're waiting and there's no mobile pause menu, and start playing if so, and make this text change if we're using a touch screen. Determining if there's a mobile pause menu could be done with getComputedStyle(this.mobile_pause_menu).display === 'none', though that's a tad hacky. Want a PR?

eevee commented 6 months ago

this is fixed now; i merged #94 but also then ended up just making the overlay clickable/tappable under any circumstances