Game Development Community

Custom game window size

by Justin Schwartzenberger · in Torque Game Builder · 07/07/2006 (6:30 pm) · 2 replies

Can someone point me in the right direction to find out how to set my game to run in a different window size other than those available in the drop-down menu of the TGB? I would like to run my game in a window that is taller than the width (something more like 500 x 800 - like pac-man or 1942 style). I am hoping that there is a way to accomplish this via torquescript without having to touch the source code, but if modifying the engine source is the only way to accomplish that then such is the way it goes. At this point I am so exhausted from searching for information on how to do this that I will just be thankful for any lead.

#1
07/12/2006 (4:13 pm)
SetRes();

and getRes();

:)

ex.

setRes(1024, 640);
#2
07/12/2006 (4:26 pm)
Sweet...thanks a ton!

Just want to add a note that the error catch for resolutions lower than 640x480 will limit how small the width can go (it is not possible to do 500x800 out of the box).