Try this code first. It is a screen size of 1024 x 768. The virtual resolution is wider and shorter, so you get 2 black borders, simulating what might happen on different phones.
Then run it a second time, but uncomment the
setScissor() line. Now you have no borders.
To make this work, my white background sprite had to be bigger than the default screen size, so that it would cover any area exposed by the setScissor() action.
SetWindowSize(1024,768,0)
setvirtualresolution(940, 540)
bg = createsprite(0)
setspritesize(bg, 1920,1200)
SetSpritePositionByOffset(bg,GetVirtualWidth()/2, GetVirtualHeight()/2)
//SetScissor(0,0,0,0)
do
sync()
loop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt