T2D Minimal Starting Point
by David House · 03/19/2005 (2:51 pm) · 3 comments
Download Code File
I wanted to start a T2D project without any of the editors, menus, images, effects, etc. No sense in including things I don't need later on, so I trimmed out all the unwanted stuff from the T2D folder. The downloadable zip file contains a Minimal project to get you started. Just unzip the files to the /example directory under your Torque 2D SDK folder. It includes a RunMinimal.bat file as well.
To create a new project based on Minimal, you have 2 choices. Either having the project contained in the /example folder, or in a totally different directory structure. Here are the steps for either one:
-- Leaving the project in the /example folder --
- Copy/paste the Minimal folder
- Rename to whatever you want to call your project
- Copy/paste the RunMinimal.bat file
- Rename to Run.bat where is whatever you called your project above
- Edit the new Run.bat file and change the -mod Minimal to -mod , again changing the to whatever you called your folder above
- Now run the Run.bat file and your project will start
--- Moving the project to a different directory structure --
- Create your new target directory
- Copy the following folders to that new directory ( from the /example folder ):
common, Minimal
- Rename the Minimal folder in your target directory to whatever you want to call your project
- Copy the following files from the /example folder to your new target directory:
main.cs, OpenAL32.dll, T2D.exe
- Now open the main.cs in your target directory and make the following changes:
change $runWithEditors = true; to $runWithEditors = false;
change $defaultGame = "T2D"; to $defaultGame = ""; ( again, where is the name of the folder you changed from Minimal above )
- Now just run T2D.exe and your project will start
I know this is simple stuff, but maybe it will help someone?
I wanted to start a T2D project without any of the editors, menus, images, effects, etc. No sense in including things I don't need later on, so I trimmed out all the unwanted stuff from the T2D folder. The downloadable zip file contains a Minimal project to get you started. Just unzip the files to the /example directory under your Torque 2D SDK folder. It includes a RunMinimal.bat file as well.
To create a new project based on Minimal, you have 2 choices. Either having the project contained in the /example folder, or in a totally different directory structure. Here are the steps for either one:
-- Leaving the project in the /example folder --
- Copy/paste the Minimal folder
- Rename to whatever you want to call your project
- Copy/paste the RunMinimal.bat file
- Rename to Run
- Edit the new Run
- Now run the Run
--- Moving the project to a different directory structure --
- Create your new target directory
- Copy the following folders to that new directory ( from the /example folder ):
common, Minimal
- Rename the Minimal folder in your target directory to whatever you want to call your project
- Copy the following files from the /example folder to your new target directory:
main.cs, OpenAL32.dll, T2D.exe
- Now open the main.cs in your target directory and make the following changes:
change $runWithEditors = true; to $runWithEditors = false;
change $defaultGame = "T2D"; to $defaultGame = "
- Now just run T2D.exe and your project will start
I know this is simple stuff, but maybe it will help someone?
#3
Cheers again,
Martin
04/19/2005 (10:27 am)
Cheers David - this is really handy for a newbie like me. As you said, its simple stuff, but it does save me a fair bit of messing around.Cheers again,
Martin

Torque Owner Joe Bestor