Game Development Community

Smaller window???? anyone???

by Jack Rothwell · in Torque Game Builder · 03/11/2008 (6:23 am) · 6 replies

Hi.
I need to make my "game window" smaller when it loads, so I can at least get my sprites to start off at the right size.
help?

#1
03/11/2008 (7:17 am)
Why dont you just increase the camera size? That will make things smaller - thats what I'm doing. You can always zoom the camera in later.
#2
03/11/2008 (8:18 am)
That would cramp screen composition. plus there's a definite relationship between the size of a window and the size of a sprite. thanks all the same tho mate.
x
#3
03/11/2008 (11:43 am)
You want the actual window to be smaller? Just change that in the preferences file.
#4
03/11/2008 (1:16 pm)
The easiest way to change your game resolution is to select the scenegraph in the level builder (ie click on empty space) then go to the "Edit" tab next to the "Project" and "Create" tabs. After switching to the Edit tab, you can change the "design resolution" to something less defined, and this should make your game window smaller.


Jason,

In TGB 1.7.2, the preferences.cs doesn't handle the user resolution preference. Instead, the commonConfigs.xml in the "common" directory is what contains the resolution preference. You could edit that, Jack, but sometimes those changes don't take effect right away. Still haven't figured that one out.

EDIT:

The relationship between screen size and sprite size using the default camera values:

sprite width in world units(wu) / camera width(wu) = sprite width in pixels / camera width in pixels
#5
03/12/2008 (1:01 am)
Wow, thanks for the response guys!
editing the design resolution doesn't work :(
it always snaps back to 640, 480
so im trying to figure out the commonconfig.xml thing.
I'll post if i can figure it out.
thanks again.
jack.x
#6
03/12/2008 (9:13 am)
The design resolution has no direct relationship with the size of the window. Thank you for pointing out the proper file, that was my fault for not getting the exact file right.