Game Development Community

Abritrary resolution

by Ian Omroth Hardingham · in Torque Game Builder · 01/21/2007 (10:01 am) · 1 replies

Hey guys.

I'm just playing around with TGB, but so far everything is in 800x600 and scaled. Does TGB easily support having resolutions that just look at more of the playfield? For instance, a 1600x1200 view sees much more of the space around the player, rather than simply scaling?

Cheers,
Ian

#1
01/21/2007 (11:18 am)
TGB supports it. Ease is determined by your skill level. It isn't supported by just setting a value somewhere, you have to write it yourself (can be done entirely in script). What I would do is set this up in the function that handles the options screen for video resolution. In addition to changing the resolution, I would detect the resolution and which way it is changing, calculate a scale factor, and adjust my camera's size accordingly.