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?
Torque Owner Dave "Jellybit" Freeman
$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.