home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
procedures
/
circlescroll.amos
/
circlescroll.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1993-03-07
|
903b
|
33 lines
'not Easy Amos
Screen Open 0,320,200,2,0 : Hide
Paper 0 : Cls
Flash Off : Curs Off
Get Sprite Palette
For I=0 To 3
For J=0 To 3
Colour I+16+J*4,Colour(I)
Next
Next
A$="HELLO! WELL HOW DO YOU LIKE THIS THEN !! NOT BAD HEY? (21 SPRITES!!!) "
A$=Upper$(A$) : Synchro Off : FON$="ABCDEFGHIJKLMNOPQRSTUVWXYZ !?:.()123456789"
B$="L: PL1;L A=27;L R3=0;P: P;If R3=0 J P;L X=368;L Y=150;L A=R3;P;J L"
For I=0 To 20
Channel I To Sprite I+8
Amal I,B$ : Amal On I : Amal Freeze I
Next : L=Len(A$)
For I=1 To L
Mid$(A$,I,1)=Chr$(Instr(FON$,Mid$(A$,I,1)))
Next : AD=Varptr(A$)
SC=22
For I=0 To 20
Sprite I+8,368,150,Peek(AD+I)
Amal On I : For J=0 To 16 : Synchro : Wait Vbl : Next
Next : Every 1 Proc EVER
Do
For I=0 To 20
If Amreg(I,3)=0 : Amreg(I,3)=Peek(AD+SC) : Add SC,1,0 To L : End If
Next
Loop
Procedure EVER
Synchro : Every On
End Proc