Resolution vs Internal Screen Coordinates (scripting)

Started by Clarvalon, Sat 20/03/2010 08:13:17

Previous topic - Next topic

Clarvalon

I'm having a spot of bother wrapping my head around resolution vs screen co-ordinates in AGS.  I can't seem to find anything conclusive on the matter, so this is what I've been able to cobble together from a variety of sources:

  • Games with resolutions of 320*200 and 320*240 use the same for internal screen coordinates.
  • 640*400 games use screen coordinates of 320*200 (x2).
  • 640*480 games use screen coordinates of 320*240 (x2).
  • 800*600 games use screen coordinates of 400*300 (x2).
  • 1024*768 games use screen coordinates of ...  ?
  • In any of the above cases, if general setting 'Use low-resolution co-ordinates in script' is set to FALSE, then the native resolution is used.

Is this correct?  And if so, what might 1024*768 use?  And is there anything else I should be mindful of?  Any help appreciated.

Thanks,
Dan
XAGE - Cross-Platform Adventure Game Engine (alpha)

GarageGothic

There's really no reason to use low-res coordinates unless you started a game on an older version of AGS and want to avoid changing all the coordinates in your script. But in any case, 1024x768 run with low-res coordinates should be using double pixels just like the other hi-res modes, so the screen resolution would be 512x384 if my math skills aren't failing me.

Clarvalon

XAGE - Cross-Platform Adventure Game Engine (alpha)

SMF spam blocked by CleanTalk