home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1990-12-11 | 2.0 KB | 60 lines |
- ' Flowing text output program
- '
- ' By
- '
- ' Graham Stephenson
- '
- ' This program is ALL my own work. Whilst it is a VERY primitive program
- ' and easy to program, it can improve the look and feel of even the most
- ' basic program in some cases. It makes your programs look more "IBMy" Use
- ' this routine in conjunction with the Standardtxt.AMOS routine and you
- ' can slightly improve the look and feel of what is a very primitive
- ' program.
- '
- ' Hope you find this useful!
- '
-
- Screen Open 0,640,200,8,Hires
- Paper 0 : Flash Off : Cls 0
- Colour 1,$FFF : Colour 2,$E9E : Colour 3,$F00 : Colour 4,$FF0
- Colour 5,$1F0 : Colour 6,$444 : Colour 7,$8BF
- Pen 2 : Curs Pen 4
-
- TXT$="Welcome to this flowing text intro. It can improve the most basic @"
- TXT$=TXT$+"display and make it look better (in my opinion anyway!) @"
- TXT$=TXT$+"It is also possible to make it go to the next line just @"
- TXT$=TXT$+"by putting in certain letters and checking those letters @"
- TXT$=TXT$+"before they are output to the screen so that necessary @"
- TXT$=TXT$+"alterations can be made. Return! @"
- TXT$=TXT$+"And again! @"
- TXT$=TXT$+"}1You might want to add }2colors }1as well! @"
- TXT$=TXT$+"}3T}4r}3y }4t}3h}4i}3s }7Looks pretty impressive!@"
- TXT$=TXT$+"You could also add your own control codes so that @"
- TXT$=TXT$+"the underline and shade commands can be used. I'll leave @"
- TXT$=TXT$+"for you to sort out though! @"
- TXT$=TXT$+"}1G}2o}3o}4d}5b}6y}7e}1! @"
-
- For T=1 To Len(TXT$)
- OUTPUT=0
- T$=Mid$(TXT$,T,1)
- If T$="@" and OUTPUT=0
- Print Chr$(13)
- OUTPUT=1
- End If
- If T$="}" and OUTPUT=0
- Add T,1
- T$=Mid$(TXT$,T,1)
- Pen(Asc(T$)-48)
- OUTPUT=1
- End If
- If OUTPUT=0
- Print T$;
- End If
- Wait Vbl
- Next T
-
- ' There you have it! You could also enhance this a lot by using a 16
- ' colour screen and have those letters 8-15 flashing. As a hint though,
- ' you would need to use Hexdecimal digits instead of denary ones.
- '
- ' Graham Stephenson 11-12-92