home *** CD-ROM | disk | FTP | other *** search
/ Falcon 030 Power 2 / F030_POWER2.iso / ST_STE / MAGS / STOSBTS1.ARJ / stosbts1.msa / DATA / MESS.DAT < prev    next >
Text File  |  1987-04-22  |  2KB  |  39 lines

  1. This routine is a newish one, it is based on a piece of code from 
  2. an old copy of ST User. What is does is display text messages by 
  3. scrolling  a line of text along the bottom of the screen, it then 
  4. shifts the whole screen up, then scrolls the next line of text 
  5. on, so you get a 'credits' type effect. At the moment the routine 
  6. uses the standard STOS font,but you could easily adapt it to use 
  7. the Xenon 2 font, or one of your own fonts, a good idea would be 
  8. to get rid of the flicker when the screen scrolls up.
  9.  Here is a quick break down of the routine....
  10.  
  11. Right, the program sets up two screens, it then prints out all 
  12. the text to one screen, it then SCREEN COPIES a bit of that 
  13. screen onto the physical screen, whn the whole line has been 
  14. scrolled, the program calls a subroutine that then scrolls the 
  15. whole screen up, then the programs carries on, when it runs out 
  16. of text it loops back to the beginning.
  17.  
  18. This routine is based around the SCREEN COPY command, and the 
  19. little known fact that you can achieve pixel horizontal 
  20. scrolling, this is because SCREEN COPY ONLY rounds the 
  21. destination X co-ord to the nearest 16 pixel boundary, the 
  22. rectangle you actually cut out can be anything as long as the 
  23. 'distance' between x1 and x2 is a multple of 16. STudy the 
  24. syntax.
  25.  
  26.  SCREEN COPY scr1,x1,y1,x2,y2 TO scr2,x3,y3
  27.  
  28. x1, and x2 can be anything, but x3 WILL be rounded to the nearest 
  29. 16 bit boundary.Okay....
  30.  
  31. Well, happy scrolling.
  32.  
  33. EEEEEE  DDDDDD   DDDDDD   IIIIII  EEEEEE
  34. EE      DD   DD  DD   DD    II    EE 
  35. EEEEEE  DD   DD  DD   DD    II    EEEEEE
  36. EE      DD   DD  DD   DD    II    EE
  37. EEEEEE  DDDDDD   DDDDDD   IIIIII  EEEEEE    21101990 YEAH.....
  38. }
  39.