itchio / itch.io

:bug: Public itch.io issues tracker and documentation - use support instead for private information!
https://itch.io/support
240 stars 26 forks source link

Add "Unlocked" Orientation option for Mobile-friendly Web Games #1432

Open rameshvarun opened 1 year ago

rameshvarun commented 1 year ago

I have a browser game that is mobile-friendly - it's designed to be played in both landscape and portrait modes.

Currently, I'm forced to lock it to one orientation or the other. I would instead like the user to be able to pick by simply rotating their device. Would it be possible to add an "Unlocked" option that disables orientation locking entirely? I did try "Default' but that seems to just lock the game to landscape.

Screenshot 2023-04-19 at 1 59 47 PM
spillz commented 2 months ago

I see this is a year+ old issue but I'd like to +1 this feature request. Grateful that itch handles putting mobile apps into fullscreen mode on mobile phones but it would be good to additionally have an unlocked orientation for apps that want to offer players the choice of orientation (this is what I thought default would do to be honest). I can fight the itch container by putting in a screen.orientation.unlock() every frame but I'd prefer not to have to do that.