home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sauce 'n' Code 1
/
sauce-n-code-01.adf
/
ASCII_Source
/
TextEffect#1.asc
< prev
next >
Wrap
Text File
|
1995-05-05
|
804b
|
45 lines
Screen Open 0,320,200,2,Lowres
Curs Off
Palette $FFF,$0
Ink 1
A$="OKAY LADS LETS N.F.A IT!"
Do
For G=-8 To 20
Cls
Proc SPACED[A$,G,100]
Wait 3
Next G
For G=20 To -8 Step -1
Cls
Proc SPACED[A$,G,100]
Wait 3
Next G
Loop
Procedure SPACED[TXT$,GAP,Y]
' cODED bY ßudda/NFA
' ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
' TXT$ is the string of text to pad out
' GAP is the space in pixels inbetween each character
' Y is the verticle co-ordinate of the text on screen
' ** Strings are auto centred **
'
SPACE_WIDTH=GAP*Len(TXT$)
Y=Y+Text Base
GAP=GAP+8
PX=Text Length(TXT$)
PX=PX+SPACE_WIDTH
For LTTR=1 To Len(TXT$)
CURRENT_LETTER$=Mid$(TXT$,LTTR,1)
X=(Screen Width/2)+XPOS-PX/2
Text X,Y,CURRENT_LETTER$
Add XPOS,GAP
Next LTTR
End Proc