Game Development Community

Non-resizeable window?

by Jack Rothwell · in Torque Game Builder · 11/30/2007 (12:53 am) · 6 replies

Hi.
im a pixel artist playing around with tgb, and i was wondering if there was a way to lock the size of the game window, say, to 800 x 600?
basically i dont want the artwork to get squashed and stretched, as it will ruin it (im a bit of a perfectionist).
also, can anyone tell me what the relationship between grid units in tgb and pixels is?
thanks
jack.x

#1
11/30/2007 (8:00 am)
The grid units in TGB are just for internal tracking of the things, the engine translates them into pixels of the appropriate size automatically unless you've changed something in the source. I generally make my Torque coordinates the same as the screen size since that's far easier for me personally.
#2
11/30/2007 (9:27 am)
This doesnt really answer my first question...
#3
11/30/2007 (9:49 am)
No, it doesn't answer your first. I'm not obligated to answer your questions, and I certainly won't answer the second now. I just answered the first since I had a moment to reply.
#4
11/30/2007 (10:00 am)
Woah, didnt mean any offence honest. im just looking for a way to make a tgb window with static dimensions. really didnt mean to offend you mate, i appreciate you taking the time to answer an eveything, sorry man.
jack.x
#5
11/30/2007 (11:36 am)
I'm usually not terse, but I wholly understood that I was only answering the first question. People answer questions here to be helpful, they may not always have the time or inclination to cater to your every request for information.

The most reliable way to do this is in the source, that would prevent most users from doing anything. You could just opt to fix that preference in the script since it can be adjusted in the commonConfig.xml file.

That would only work in Windows, since the executable would have been compiled for Windows. Mac may have something similar, but I wouldn't know. By default though, it's going to compile with the ability to minimize, go between full screen and windowed mode. Still, this is an odd request since most players aren't going to try to change the resolution to anything really odd. Of all the things you could care about, this should be pretty low on the list. Supposing I acquired your game and wanted to run it in 800x500 because I like it looking a bit squished, there is little you could do about it.
#6
12/01/2007 (12:46 am)
Yea i totally understand where youre coming from.
think i just dont like the thought of spending hours working on game art if its just gonna get messed up, but thank you so much for your time in trying to help me out, i really appreciate it.
jack.x