Game Development Community

Defaultgame

by Daniel Horton · in Torque Game Builder · 05/02/2006 (5:55 pm) · 2 replies

Hello again. As I wait ever so impatiently for some of the tutorials to catch up with all these changes, I'd like to tinker w/ the demos that come included with the engine. What are the values that need to be put in for $defaultgame so that I can launch the various games to see how bad I messed them up?

#1
05/27/2006 (9:36 pm)
Just change "T2D" in "$defaultGame = "T2D";" to the game folder you want. For instance, if you want it to load the gravdemo by default, you'd change it to:

$defaultGame = "gravdemo";

You can also just make a bat file (or type at the command prompt) with the following:

t2d.exe -game

That'll boot up the game you need. For instance, to load the space shooter demo, you'd use the following command:

t2d.exe -game scrollerDemo

You can make as many bat files as you want to load whatever project you want. It's easier than editing main.cs every time.
#2
05/28/2006 (12:57 pm)
Thank you very much.