Page 1 of 1
Stretch Screen
Posted: Mon Oct 25, 2021 9:20 pm
by J. Baker
I see there's no option to stretch the screen like in PB. Any alternatives for HTML5 or mobile?
Re: Stretch Screen
Posted: Tue Oct 26, 2021 7:23 pm
by bembulak
Rumors have it that it might be helpful to use the "Dialog" library, which seems to support auto-scaling (sort of).
But I do have the totally same problem: there's no easy way (for me at least) to scale up a GUI for different screens.
Most, nah, ALL of the stuff I write must be available (=working fine) on mobile. That's quite a task at the moment.
Re: Stretch Screen
Posted: Wed Oct 27, 2021 8:07 pm
by plouf
DesktopWidth(0) + DesktopHeight(0) can give you at any time visible size, including when orientation is changed
also you can bindevent with #PB_Event_SizeDesktop , to be aware when size changes to rsize anything you want
"auto" resize is not exist (yet ?)
Re: Stretch Screen
Posted: Wed Oct 27, 2021 8:51 pm
by J. Baker
Thanks for the replies!
The resize is a nice feature for retro/pixels games where you can just stretch the screen. With mobile devices having so many different resolutions, it would be a nice feature for any game.