home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computerspiele Selbermachen
/
computerspieleselbermachen.iso
/
rtag
/
ss11a-2.rta
< prev
next >
Wrap
Text File
|
1994-09-11
|
1KB
|
36 lines
/*
* RTAG source file.
* Animated tour around some buildings
* Written by Phillip H. Sherrod.
*/
// File declarations
bfile "ss11a"; // Batch file will be tour.bat
// Variable declarations.
var lastframe = 270; // Generate 260 frame animation
var x; // X position
var y; // Y position
var z; // Z position
var xlook; // X to look at
var ylook; // Y to look at
var zlook; // Z to look at
// Main animation loop
x=0;
while (curframe < lastframe) {
nextframe; // Begin a new frame
// Determine position
bwrite("if exist ss12a`###`.gif goto do`+++`\n");
bwrite("echo #declare xpos = `x` > ss11.inc\n");
bwrite("echo #declare ypos = `y` >> ss11.inc\n");
// Write command to render the frame image
bwrite("call trg320a ss12a ss12a`###` -p\n");
x = x + 0.1;
bwrite(":do`+++`\n");
}
// Write final batch command to run DTA
epilog;
bwrite(":do`+++`\n");
bwrite("call dodta TOUR /S8\n");