C
Cupid Stunt
Guest
Before I get to reinventing the wheel I want to be sure that there is not an automatic scaling system for users resizing game or browser windows.
The games that I'm currently working on should have their elements stay in the same relative position and all remain visible as the window's size is changed.
I assume that I just need to make my positions and sizes relative to the windows height, width, and aspect ratio, and then to redraw everything on a window size change. Is that correct?
To extend the question further, does this hold true for all target platforms? Are there any specific variables that will help me?
I've found the tutorial on scaling my surface in html5 and made that part work on the surface, but not the elements. I'm just asking before I redesign the entire layout to be relative, that there isn't a built-in facility to do so already.
Thanks
The games that I'm currently working on should have their elements stay in the same relative position and all remain visible as the window's size is changed.
I assume that I just need to make my positions and sizes relative to the windows height, width, and aspect ratio, and then to redraw everything on a window size change. Is that correct?
To extend the question further, does this hold true for all target platforms? Are there any specific variables that will help me?
I've found the tutorial on scaling my surface in html5 and made that part work on the surface, but not the elements. I'm just asking before I redesign the entire layout to be relative, that there isn't a built-in facility to do so already.
Thanks