home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 560.lha / ChemniMaTe_v0.8alpha / Examples / Rocket.ani < prev    next >
Text File  |  1991-09-19  |  5KB  |  194 lines

  1. ; THE ROCKET-DEMO
  2. ; I knew I ever would be able to play along with my own vectorball routines!
  3. ; © :
  4. ; 17-Jul-91    KP van Gend    a rocket flies around.
  5. ; 23-Jul-91    KP van Gend    Added something looking like stars in the
  6. ;                background. Looks quite ugly sometimes.
  7. ; 27-Jul-91    R Knaapen    added some BALLS #ON#/#OFF#.
  8. ; 11-Aug-91    KP van Gend    added VIPER  &  EXPLOSION.
  9. ;
  10. ;
  11. ; This file is written to show the possibilities of ChemniMaTe...
  12.  
  13. Data 1
  14. ;r   ang  hei  typ lin    ;nr    (comment)
  15. 37    0   -5   H6   4    ;1    one of basement 
  16. 37   21   -5   H6   4    ;2    two of basement
  17. 37   43   -5   H6   4    ;3    three of basement
  18.  0    0   0    C0   4    ;4    body of rocket
  19.  0    0   50   Hr20 4    ;5    antenna of rocket.
  20. Data 11 ;skip a few...
  21. 60   0    0    In12 12    ;11    here below are the data for the stars.
  22. 61   0      0    In12 11    ;12
  23. 70   19   0    In12 14    ;13
  24. 71   19   0    In12 13    ;14
  25. 60   25   0    In12 16    ;15
  26. 60   25      0    In12 15    ;16
  27. 70   48   0    In12 18    ;17
  28. 71   48   0    In12 17    ;18
  29. 30    7   0    In12 20    ;19
  30. 30    7      0    In12 19    ;20
  31. 80   35   0    In12 22    ;21
  32. 81   35   0    In12 21    ;22
  33. 20   55   0    In12 24    ;23
  34. 20   54      0    In12 23    ;24
  35. 90   11   0    In12 26    ;25
  36. 91   11   0    In12 25    ;26
  37. 120  22   0    In12 28  ;27
  38. 120  22   0    In12 27    ;28
  39. 120  42   0    In12 30    ;29
  40. 120  42   0    In12 29    ;30
  41. 120   2   0    In12 32    ;31
  42. 120   2   0    In12 31    ;32
  43. EndData
  44.  
  45.  DisplayMode 1    ;two-dimensional look.
  46.  
  47.  THeader "      Do You Know What This Is ???"
  48.  TFooter "          Guess You Don't Know!"
  49.  
  50.  I:=120;
  51. Repeat 2
  52.   Loop
  53.     Middle (160 , 120)    ; Set Middle of screen.
  54.     Balls #Off#        ; this one is to improve the playing speed.
  55.     ShowNS 11 32
  56.     Balls #On#
  57.     CM 11 32 1 -3
  58.     Middle (#i# , 125)    ; Set Middle of screen.
  59.     Show 1 1 5
  60.     i:= [#i# + 2]    ; Move spaceship to the right...
  61.   Until #I# >= 200
  62.   TFooter "   Is it a molecule? Is it an alien?"
  63.   Loop
  64.     Middle (160 , 120)    ; Set Middle of screen.
  65.     Balls #Off#        ; The stars consist of lines, and In12 -> no need
  66.     ShowNS 11 32
  67.     Balls #On#        ; To display 20 invisibles. Thus, set Balls off.
  68.     CM 11 32 1 -3
  69.     Middle (#i# , 125)    ; Set Middle of screen.
  70.     Show 1 1 5
  71.     i:= [#i# - 2]    ; Move spaceship to the right...
  72.   Until 120 >= #I# 
  73. EndRepeat
  74.  
  75. ; empty screen 
  76.  TFooter " "
  77.  Theader " "
  78.  SPages
  79.  
  80.  DisplayMode 0    ;normal 3-d look.
  81. Data 1
  82. ;r   ang  hei  typ lin    ;nr    comment
  83. 59   16    0    C0  1    ;1    back-backbody
  84. 63   16    0    C0  2    ;2    front-backbody
  85. 88   14   -26   H6  2    ;3      front-leg
  86. 38   13   -26   H6  1   ;4    back-leg
  87. 61   13    31   H6  1   ;5    upper-leg
  88. 64   19    0    C0  6    ;6    back-frontbody
  89. 65   19    0    C0  7    ;7    front-frontbody
  90. 81   23    0   Hr20 6    ;8    top 
  91. 81   23    0   In12 7    ;9    top (second line)
  92. 61   15    0   Hr22 10  ;10    fire...
  93. EndData
  94.  
  95.  Middle (160 , 120)    ; Set Middle of screen.
  96. Repeat 33
  97.   Show 1 1 9
  98.   Show 1 1 10
  99. EndRepeat
  100.  THeader "     NO! Geezz, It's a Rocket..."
  101.  Tfooter "Didnt know you could do such with CHMNMT"
  102. Repeat 33
  103.   DisplayMode 1
  104.     Balls #Off#
  105.     ShowNS 11 32    ;show stars
  106.     Balls #On#
  107.     CM 11 32 1 -1
  108.   DisplayMode 0
  109.     Show 1 1 9        ;show rocket without fire
  110.   DisplayMode 1
  111.     Balls #Off#
  112.     ShowNS 11 32    ;show stars
  113.     Balls #On#
  114.     CM 11 32 1 -1
  115.   DisplayMode 0
  116.     Show 1 1 10        ;show rocket WITH fire.
  117. EndRepeat
  118.  
  119.  
  120. Data 12
  121. ;r   ang  hei  typ lin    ;nr    (comment)
  122. 20    0   14   In12 13    ;12
  123. 20   32   14   In12 14  ;13
  124. 30   16      14   In12 15    ;14
  125. 70   16    0   C0   16  ;15
  126. 30   16  -14   In12 17    ;16
  127. 20   32  -14   In12 18    ;17
  128. 20    0  -14   In12 19    ;18
  129. 32    0    0   C0   12    ;19
  130. 20   32   14   In12 21    ;20
  131. 32   32    0   C0   17    ;21
  132. 30   16  -14   In12 18    ;22
  133. 30   16   14   In12 12    ;23
  134. 32    0    0   In12 15    ;24
  135. 32   32    0   In12 15    ;25
  136.  
  137. EndData
  138.  
  139. DisplayMode 0
  140.   Middle (160, 100)
  141.   Balls #Off#
  142.   Theader " "
  143.   TFooter " "
  144.   DAn:= 0;
  145.   Ang:= 2;
  146.   Show 1 12 25
  147.   Wait 20;
  148.  
  149.   Text (74, 165) "VIPER class (POLICE SHIP)"
  150.   Show 1 12 25
  151.   Wait 20
  152.   Text (74, 165) "VIPER class (POLICE SHIP)"
  153.   Text (14, 182) "ARMAMENTS: PulseLaser & Seeker Missiles"
  154.   Text (14, 190) "VELOCITY: 0.32 LM     CREW: 1 (up to 10)"
  155.   Text (14, 198) "MOTORS: deLacy Super Thrust VC10"
  156.   Show 1 12 25
  157.  
  158.   Wait 150;
  159.   DAn:= 2;        /* fast(er) turn */
  160.  
  161. Repeat 24
  162.   Text (74, 165) "VIPER class (POLICE SHIP)"
  163.   Show 1 12 25
  164. EndRepeat
  165.  
  166.   Text (14, 200) "This craft makes a warp to our rocket."
  167.   TFooter "Guess what will happen when they meet ?"
  168.   SPages
  169.   Wait 150
  170.  
  171.   Dan:= 1;
  172.   CM 1 10 1 -50
  173.  
  174. Repeat 13
  175.   Middle (100, 125)
  176.   Balls #ON#
  177.   CM 1 10 1 -1    ;I don't want to let the rocket turn as fast as the viper
  178.   ShowNS 1 10;
  179.   Middle (210,125)
  180.   Balls #Off#
  181.   Show 1 12 25    ;show the viper
  182. EndRepeat
  183.   Wait 50
  184.  
  185. ; B O O M ! ! 
  186.   TFooter "            B O O M ! !"
  187.   Text (0,125) "B O O M !"
  188.   Dan:= 0
  189.   Show 1 12 25
  190.  Wait 200
  191. ; That's all folks!!! How did you like it?
  192. ; Nah, better not say...
  193.