I am implementing a way to adapt game orientation on the fly, visualizing a game in both landscape and portrait modes, but to handle it I have to “unlock” the window size in project.xml:
previously it was set to
<window width="1280" height="720" unless="mobile"/>
now it is
<window width="0" height="0" unless="mobile"/>
so when I test the app on a desktop device I can resize the window of the browser and simulate the rotation of mobile devices by checking the window ratio (>=1 is landscape, <1 is portrait).
The problem is that when I set window width and height to 0 I am disabling the mask that normally hides what goes out of the app boundaries: is there a way to restore that “maks” without applying a mask to the whole app myself? Currently masks in Openfl can introduce some problems, so I’d like to avoid this high-level/bruteforce approach.