My new MissionArea Game
by Entr0py · in Torque Game Engine · 01/31/2007 (4:50 pm) · 3 replies
I finished my new missionarea game, but since I don't think many people will buy it I am releasing the source code to the community for all to enjoy.
The object of the game is to make as many missionareas as you can.
Here is the code:
First we need to allow more than one missionarea to be made. In missionarea.cpp in Missionarea::Add, comment out the following lines like this:
Then somewhere in script add this (these values are simply my preferences, change them around however you like):
Then start the game and go into the console and type:
I let this run while I went to smoke a cigarette and got a high score of 650,000, which makes me the reigning champ of The Missionarea game. I would like to see you n00bs do better.
The object of the game is to make as many missionareas as you can.
Here is the code:
First we need to allow more than one missionarea to be made. In missionarea.cpp in Missionarea::Add, comment out the following lines like this:
// if(isServerObject() && MissionArea::getServerObject())
// {
// Con::errorf(ConsoleLogEntry::General, "MissionArea::onAdd - MissionArea already instantiated!");
// return(false);
// }Then somewhere in script add this (these values are simply my preferences, change them around however you like):
function Entr0pysBadassMissionareaGame()
{
for(%i=0;%i<786876876876876;%i++)
{
new missionarea(%i){
Area = "-360 -648 720 1296";
flightCeiling = "300";
flightCeilingRange = "20";
locked = "true";
};
echo(%i);
}
}Then start the game and go into the console and type:
Entr0pysBadassMissionareaGame();
I let this run while I went to smoke a cigarette and got a high score of 650,000, which makes me the reigning champ of The Missionarea game. I would like to see you n00bs do better.
Torque Owner Gary "ChunkyKs" Briggs
Gary (-;