So, here's what I'm proposing.
We don't create anything too complicated. We create something using a very easy syntax to create scripted gameplay. It would be called TronML, or TML for short, be loosely based on PHP/other languages, and would look something like this:
Code: Select all
FUNCTIONS {
caseR() {
CASE $R {
1 {$fort_Coord = 0,-150 };
2 {$fort_Coord = 0,150 };
3 {$fort_Coord = -150,0 };
4 {$fort_Coord = 150,0 };
};
};
spawnZone($name) {
$R = 1;
$X = 1;
WHILE $R <= 4 {
caseR();
WHILE $X <= 4 {
SPAWN_ZONE n $name fortress $name $fort_Coord 50 0;
$X = $X + 1;
};
$R = $R + 1;
};
};
moveZone($name) {
$X = 1;
WHILE $X <= NUM_HUMANS {
MOVE_ZONE $name TO 0,0 OVER 10;
$X = $X + 1;
};
};
};
// GAME PLAY:
ON GAME_TIME 0 {
spawnZone($player);
};
ON GAME_TIME 3 {
moveZone($player);
};
Functions are useable here, and perhaps someone can suggest a better way of making it so the game doesn't automatically run them when it goes to run the config file.
MOVE_ZONE has a few differences from SET_ZONE_POSITION. The usage for it is MOVE_ZONE name TO coord OVER time. In place of OVER you could use AT and define a speed with which the zone would move.
Its pretty self-explanatory after that.
Thoughts?