home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / asp / part01 / demo3.asp < prev    next >
Encoding:
Text File  |  1991-10-16  |  4.6 KB  |  177 lines

  1. .smooth 1 .p
  2. --
  3.  
  4. .wspatter .p .p .p .fade
  5.   (C) ADE Muffett, UCW Aberystwyth, 1991. "aem@aber.ac.uk" "...!ukc!aber!aem"
  6.  
  7. .spatter .p .p .fade .p
  8.                         A Roadrunner>>>++>> production
  9.  
  10. .show .p .p .clear
  11.                                   Hello there.
  12.                I bet you're wondering what I've been up to of late.
  13.                       On the other hand maybe you haven't.
  14.           Perhaps you don't know about scrolling ".plan" files at all ?
  15.  
  16. .p .p
  17. --
  18.  
  19. .show .p .p .wipe
  20.  You see (for those newcomers amongst you), a long time ago, two undergraduates
  21.                    here in Aberystwyth decided to have a 'war'.
  22.  
  23. .p .p
  24. --
  25.  
  26. .show .p .p .clear
  27.               They were (are) Alun Jones "alj8" and Kev Brooks "kkb9".
  28.  
  29. .p .p
  30. --
  31.  
  32. .show .p .p .clear
  33.           The war was over who could produce the 'prettiest' ".plan" file.
  34.  
  35. .p .p
  36. --
  37.  
  38. .show .p .p .wipe
  39.      They fought tooth and nail, with many people watching on the sidelines.
  40.  Letters scrolled on and off the screen, flashed at you, it was quite amusing.
  41.  
  42. .p .p
  43. --
  44.  
  45. .scrollob .p .p
  46.     But then one day, I saw one effort (Kev's) that was really appalling:
  47.    A huge data file that flashed, flickered and grunged its way across the
  48.      screen, and I thought to myself :- "I can do much better than that!"
  49.  
  50. .p .p
  51. --
  52.  
  53. .show .p .p .clear
  54. I think that in retrospect I was right.  8)
  55. I sat down, and I wrote "ASP" :-
  56.  
  57. .show .nl .p .p .wipe
  58. Alec's Scrolling Program: a description language for plan files
  59.                 - written in fairly portable C
  60.                 - with a nice simple syntax
  61.                 - and above all, pleasant and easy to use.
  62.  
  63. .nl .p .p
  64. --
  65.  
  66. .scrollb .p .p .clear
  67. So - What can you do with ASP ? (I hear you scream)
  68.  
  69. .show .p .p
  70. (apart from flashing messages like this on and off of the screen)
  71.  
  72. .speed 20 .flash
  73.             flashing
  74.  
  75. .speed 0 .clear .p .p
  76. --
  77.  
  78. .scrollf .p .p
  79. You can scroll a piece of text onto the screen line, either forwards...
  80.  
  81. .scrollb .p .p
  82.  ...or backwards onto the screen (just like this !)
  83.  
  84. .scrollof .p .p
  85. Or what you have on the screen already can be scrolled off to the right ----->
  86.  
  87. .scrollob .p .p .wipe
  88. <----------------- and ditto off to the left, as you might expect.
  89.  
  90. .spatter .p .p .wipe
  91.                You can spatter bits of text onto the screen
  92.  
  93. .show .p .p .fade .p
  94.                and then just let them fade into nothingness....
  95.  
  96. .layf .p .p .wipe
  97.        Messages can be laid down letter by letter, from left to right;
  98.  
  99. .layb .p .p .wipe
  100.              ...and of course, ditto for messages right to left.
  101.  
  102. .laymte .p .p .wipe
  103.  Then there is laying messages down from the middle to the ends of the screen
  104.  
  105. .layetm .p .p .wipe
  106.                 - and vice versa for messages, ends to middle.
  107.  
  108. .laymte
  109.          really build up some                                         these...
  110.  
  111. .layetm
  112.  You can really build up some quite complex
  113.  
  114. .laymte .p .p .fade .wipe
  115.  You can really build up some quite complex special effects with only these...
  116.  
  117. .letter1
  118. but thats nothing compared to what you can do with the special text functions.
  119. BUT THATS NOTHING COMPARED TO WHAT YOU CAN DO WITH THE SPECIAL TEXT FUNCTIONS.
  120. But thats nothing compared to what you can do with the special text functions.
  121.  
  122. .wipe .p .p
  123. --
  124.  
  125. .letter2
  126.        ESPECIALLY when YOU employ THE RANDOM-character-SEARCH macros.
  127.  
  128. .letter1
  129.        especially WHEN you EMPLOY the random-CHARACTER-search MACROS.
  130.        esPECIALLY when yoU emPLOY the random-chARACTER-sEARCH macros.
  131.        ESPEcially wHEN YOu EMPloy THE RANDOM-character-SEarch macROS.
  132.        especiALLY whEN you EMPLoy the ranDOM-CHARacter-seaRCH macROS.
  133.        Especially when you employ the random-character-search macros.
  134.  
  135. .clear .p .p
  136. --
  137.  
  138. .show .p .p .clear
  139.         But the thing that really "made it" in my mind, was animation.
  140.                       Foregrounds and backgrounds.
  141.                            The whole kaboodle.
  142.  
  143. .p .p .show .p .p
  144. And thus was born the Andalusian Video Snail:
  145.  
  146. .object \@_ 100 50 .anim .resetanim .p .p
  147. --
  148.  
  149. .object _@_ 50 50 .anim .resetanim .p
  150. --
  151.  
  152. .object _@/ 50 100 .anim .resetanim .p .p
  153. --
  154.  
  155. .tshow .p .p .clear
  156.                                               And everyone copied it... Foo !
  157.  
  158. .show .p .p .wipe
  159.                                         8)
  160.                   Oh well. Back to the hack. See you again soon.
  161.    ps: a copy of the asp source code for this plan can be found in the file
  162.  
  163. .show \
  164. .object ----> 0 74 \
  165. .object <---- 74 0 \
  166. .anim .resetanim \
  167. .object ----> 0 74 \
  168. .object <---- 74 0 \
  169. .anim .resetanim \
  170. .show
  171.                  "demo3.asp" in the standard asp distribution.
  172.  
  173. .nl .show .p
  174.                                      Bye Now...
  175.                                 Alec D.E. Muffett
  176.                                      (c) 1991
  177.