Game Development Community

Mac / Windows Build Issue

by James Randall · in Torque Game Builder · 02/20/2006 (9:51 am) · 1 replies

I wanted to have a go at doing a release build of the Breakout clone I've been messing around with and I got it all working fine with the editors stripped and loading straight to the splash screen and then my game.

This was all on my Mac on which I do most of my development.

I transferred the files over to my Windows PC but the resolution of the window the game is running in has changed from 640x480 to 800x600 without me changing any of the code.

Anyone got any ideas why this has happened?

I suppose it could be to do with the graphics hardware on the PC not wanting to do a 640x480 window but I find that pretty hard to believe - its running a modern graphics card and I've created 640x480 windows with OpenGL and SDL before on that machine with no problems.

#1
02/20/2006 (12:29 pm)
If I remember correctly it is picking that up from a prefs file. If you want to force the game to run at a certain resolution you can do so, but I don't remember the command off the top of my head. You can find it looking in the script stuff to initialize or in a reference for the base torquescript.

There are functions to get a list of all available resolutions so you can present those in a requester and let the player choose the resolution to use, or you can pick the resolution closest to what you want it to be.

Tim Doty