supertux icon indicating copy to clipboard operation
supertux copied to clipboard

WebVersion: add option to toggle fullscreen-mode and force landscape mode

Open nanderer opened this issue 3 years ago • 3 comments

SuperTux version: v0.63-569 System information: tablet with firefox-webbrowser (details about your kernel, operating system, or distribution) Hi,

thanks a lot for allowing to play supertux in every modern browser, it works grate. But what would be even better if there would be a way to get it into full screen mode and force landscape mode, also maybe a button to put a link onto the start screen and a way to copy/paste the savegame using some base64 text and the devices clipboard... Also somehow everytime i start the game it has to download the 240MB of stuff again, maybe there is a way to do some cachecontrol about that.

thanks a lot and keep up the good work

nanderer avatar Aug 09 '22 16:08 nanderer

You can make the game fullscreen through the usual means: from the main menu, in "Options", you have a checkbox for fullscreen mode, which should work as expected.

As for locking the device in a certain orientation, this does not seem to be (reliably) possible from the web version, given that browsers don't want to let websites force too much stuff on the user. It seems to be possible in certain browsers - unfortunately not Safari - but it seems to be a discouraged practice. It would be better if you manually enable rotation lock in your OS control dock instead.

There is a technology that would allow us to let you put, on your desktop, a quick link to the game. Those are Progressive Web Apps. It is in the plans to add this to SuperTux, but it would require a certain amount of time and energy, so I can't really promise to get it done anytime soon. (For the other devs, it seems that PWAs support forcing screen orientation, although there is no way to give the user the option to control that, so I'd recommend letting the users use their OS features as described above instead of forcing an arbitrary choice on all users.)

Semphriss avatar Aug 09 '22 21:08 Semphriss

many mobile browsers do not have a fullscreen button (like firefox for android) but are capable of showing sites/webapps in fullscreen mode as they request it, so it would be nice if you could add a toggle fullscreen button to do so...

landscape mode is not that problem but fullscreen button would be nice

nanderer avatar Aug 13 '22 10:08 nanderer

many mobile browsers do not have a fullscreen button (like firefox for android) but are capable of showing sites/webapps in fullscreen mode as they request it, so it would be nice if you could add a toggle fullscreen button to do so...

As I said in my first comment, such a button already exists (it always has) and is accessible from:

[...] the main menu, in "Options", you have a checkbox for fullscreen mode, which should work as expected.

Is the option missing or dysfunctional?

Semphriss avatar Aug 20 '22 19:08 Semphriss

Closing due to inactivity.

tobbi avatar Dec 10 '23 14:12 tobbi