home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 November / Chip_2001-11_cd1.bin / oddech / stratton / data1.cab / DATA_FILES / data / gui / test.ggm < prev    next >
Encoding:
Text File  |  2000-12-16  |  2.8 KB  |  90 lines

  1. //  Game GUI Movie File
  2. //
  3.  
  4. //  Max line length = 255 chars
  5. //  Max keyword length = 32 chars
  6.  
  7.  
  8. GAMEGUIMOVIE 1.0                //  Version -- must be first valid line in this file
  9.  
  10. //
  11. //  Actor definitions
  12. //
  13.  
  14. POLYGON MYPOLY                  //  Actor that is a polygon
  15.   //  Vertex format is
  16.   //  V x y [a r g b] [u v]
  17.   V -0.5  0.5  1.0 1.0 0.0 0.0  //  Not bothering to add texture coords (u,v)
  18.   V  0.5  0.5  1.0 0.0 0.0 1.0
  19.   V  0.5 -0.5  1.0 0.0 1.0 1.0
  20.   V -0.5 -0.5  1.0 0.0 1.0 0.0
  21. END
  22.  
  23. POLYGON MYPOLYTEX
  24.   BITMAP "test_tex.psd"
  25.   V -0.5  0.5  0.0  0.0         //  Not bothering to use colors, defaults to 1,1,1,1
  26.   V  0.5  0.5  1.0  0.0
  27.   V  0.5 -0.5  1.0  1.0
  28.   V -0.5 -0.5  0.0  1.0
  29. END
  30.  
  31. POLYGON BG_WHITE                        //  A rectangle, screen-size
  32.   V -100.0%  100.0% 1.0 1.0 1.0 1.0     //  Use % for percentage of screen size
  33.   V  100.0%  100.0% 1.0 1.0 1.0 1.0
  34.   V  100.0% -100.0% 1.0 1.0 1.0 1.0
  35.   V -100.0% -100.0% 1.0 1.0 1.0 1.0
  36. END
  37.  
  38. SOUND MYSOUND
  39.   FILENAME "sound1.au"
  40. END
  41.  
  42. //MOVIE MYMOVIE                   //  Actor that is a movie!
  43. //  FILENAME "test_child.ggm"     //  Please avoid cyclic dependencies, thankyou.
  44. //END
  45.  
  46.  
  47. //
  48. //  Movie Script
  49. //
  50.  
  51. SCRIPT                          //  Begin this movie's script
  52.  
  53.   00000 MYPOLY                   //  Begin a child script for MYPOLY it at time indicated
  54.          00000 SETPOS -1.0 -1.0           //  Now event times are relative to start of *this* sub-script
  55.          00000 SETROT 0.0
  56.          00000 SETCOLOR 0.0 1.0 1.0 1.0
  57.          15000 SETPOS 1.0 1.0             //  actor will be linearly interpolated
  58.          15000 SETROT 360.0               //  (non linear interps will likely be
  59.          15000 SETCOLOR 1.0 1.0 1.0 1.0   //  handled with EASEIN/EASEOUT factors)
  60.          16000                            //  Pads script with 1000 ms
  61.         END                               //  END of child script
  62.  
  63.   01500 MYPOLYTEX                //  Begin child script for MYPOLYTEX
  64.          00000 SETPOS 1.0 -1.0            //  Event times relative to start of *this* sub-script
  65.          00000 SETSCALE 6.0 6.0
  66.          00000 SETROT 1200.0
  67.          00000 SETCOLOR 1.0 1.0 1.0 1.0
  68.          15000 SETPOS -1.0 1.0
  69.          15000 SETSCALE 1.0 1.0
  70.          15000 SETROT 0.0
  71.          15000 SETCOLOR 0.0 1.0 1.0 1.0
  72.         END                                //  END of child script
  73.  
  74. //  02000 MYMOVIE                  //  Apply these events to the movie loaded as an actor
  75. //         00000 SETROT 0.0
  76. //         16000 SETROT 360.0
  77. //        END
  78.  
  79.   04000 MYSOUND
  80.          00000 SETPLAYMODE LOOP
  81.   12000 END
  82.  
  83.   04000 BG_WHITE                  //  Background flash
  84.          00000 SETCOLOR 1.0 1.0 1.0 1.0
  85.          01000 SETCOLOR 0.5 1.0 1.0 1.0
  86.          04000 SETCOLOR 0.0 0.0 0.0 1.0
  87.         END
  88.  
  89. END
  90.