home *** CD-ROM | disk | FTP | other *** search
/ Computerspiele Selbermachen / computerspieleselbermachen.iso / rtag / ss12-2.rta < prev    next >
Text File  |  1994-09-08  |  1KB  |  34 lines

  1. /*
  2.  *  RTAG source file.
  3.  *  Animated tour around some buildings
  4.  *  Written by Phillip H. Sherrod.
  5.  */
  6.  
  7. //  File declarations
  8. bfile "ss12a";           // Batch file will be tour.bat
  9. //  Variable declarations.
  10. var lastframe = 270;    // Generate 270 frame animation
  11. var x;                  // X position
  12. var y;                  // Y position
  13. var z;                  // Z position
  14. var xlook;              // X to look at
  15. var ylook;              // Y to look at
  16. var zlook;              // Z to look at
  17.  
  18. //  Main animation loop
  19. x=0;
  20. while (curframe < lastframe) {
  21.     nextframe;              // Begin a new frame
  22.     //  Determine position
  23.     bwrite("if exist ss12a`###`.tga goto do`+++`\n");
  24.     bwrite("echo #declare xpos = `x` > ss11.inc\n");
  25.     bwrite("echo #declare ypos = `y` >> ss11.inc\n");
  26.     //  Write command to render the frame image
  27.     bwrite("call trg320a ss12a ss12a`###` -p\n");
  28.     x = x + 0.1;
  29. }
  30. //  Write final batch command to run DTA
  31. epilog;
  32. bwrite(":do`+++`\n");
  33. bwrite("call dodta TOUR /S8\n");
  34.