Another alternative is to calculate it yourself. i use something like this:
You define a maxwidth, say 1024 and it wil calculate the best possible width on the device its running on, and set the height to fit the device perfectly without any borders.
maxwidth = 1024
dx# = GetDeviceWidth()
dy# = GetDeviceHeight()
global scfactor#
if dx# > dy#
if dx# > maxwidth
scfactor# = (maxwidth/dx#)
dy# = dy# * scfactor#
dx# = maxwidth
endif
else
if dy# > maxheight
scfactor# = (maxheight/dy#)
dx# = dx# * scfactor#
dy# = maxheight
endif
endif
screenwidth = round(dx#)
screenheight = round(dy#)
SetWindowTitle( "Game" )
SetWindowSize( screenwidth, screenheight, fullscreen )
SetVirtualResolution( screenwidth, screenheight )
After this you can place your sprites etc... using the screenwidth and screenheight.
Also i sometimes use a scale factor when setting sprites gui stuff etc.. something like this:
global guiscale# = 0.75 // use it to increase decrease size.
SetSpriteScale(sprite,guiscale#,guiscale#)
SetSpritePosition(sprite,(guix+32.0)*guiscale#,(guiy+78.0)*guiscale#)
so you can increase the size of your sprites if they are display on a high resolution device.
So yes i agree this is what need to be done before you code anything else, everything will depend on the resolution of the device
best regards Preben Eriksen,