Full screen
by Sobo · in Torque Game Builder · 05/18/2008 (9:49 am) · 6 replies
Hi. I feel a little bit uncomfortable with the 1.7.3 version. Where do I change the code to make my game start in full screen?
About the author
#2
05/18/2008 (1:23 pm)
Thats the problem, Im pretty sure you were able to choose this from the editor in earlier versions, but I cant find such a function in the new 1.7.3 version. There have to be a way to change this by code.
#3
I changed the line:
$pref::Video::fullScreen = 0;
to:
$pref::Video::fullScreen = 1;
Shouldnt this change make it work?
Somebody please help me.
05/19/2008 (6:47 am)
Still cant get it to work. I was playing with the code in the defaultPrefs.cs file a little:I changed the line:
$pref::Video::fullScreen = 0;
to:
$pref::Video::fullScreen = 1;
Shouldnt this change make it work?
Somebody please help me.
#4
I usually set screen mode in the initializeProject function in game\main.cs
the last parameter sets the screen mode to full screen or not.
05/19/2008 (7:14 am)
Adam,I usually set screen mode in the initializeProject function in game\main.cs
setScreenMode(1024, 768, 32, true);
the last parameter sets the screen mode to full screen or not.
#5
05/19/2008 (12:08 pm)
Thank you VERY much. That worked great. Its funny that I dont know how to do these simple things when I have developed three other games in TGB.
#6
05/19/2008 (12:28 pm)
Also, keep an eye out for common/commonConfig.xml; which can have some interesting affects on resolution and fullscreen...
Torque Owner Tyler Slabinski