Lunakepio / Mario-Kart-3.js

https://lunakepio.github.io/Mario-Kart-3.js/
MIT License
4.3k stars 950 forks source link

Adding back navigation functionality specifically for Mobile Gameplay #23

Closed somunaexe closed 6 months ago

somunaexe commented 6 months ago

The keyboard has keys to press. The gamepad has buttons to press.

But for mobile, there is no button or key. Thus, a button HUD element should be displayed during gameplay. If pressed, the user will exit the game and be navigated back to the landing page.

The button may as well be available for Keyboard players in case their escape key (refer to issue #20) isn't working.

I don't think the button should be displayed for Gamepad since players won't be able to directly click/tap it).