home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
various
/
mirror_scroll.amos
/
mirror_scroll.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1991-06-13
|
2KB
|
88 lines
'
' Sensor Mirror Scroll !!!!!
'
'
Shared T$,TL,TK$,X1,Y1,TT$,NR,YS
Screen Open 0,320,200,16,Lowres
Flash Off : Curs Off
Palette $0,$0,$FFF
Cls
Proc SCHERMEN
Proc SCHERM
Proc LD
'
Procedure LD
Screen 1
Dim X1(50),Y1(50)
For A=1 To 50
Read X1(A),Y1(A)
Next A
Data 0,0,16,0,32,0,48,0,64,0,80,0,96,0,112,0,128,0,144,0,160,0,176,0,192,0,208,0,224,0,240,0,256,0,272,0,288,0,304,0
Data 0,16,16,16,32,16,48,16,64,16,80,16,96,16,112,16,128,16,144,16,160,16,176,16,192,16,208,16,224,16,240,16,256,16,272,16,288,16,304,16
Data 0,32,16,32,32,32,48,32,64,32,80,32,96,32,112,32,128,32,144,32
Do
P=0
J=1
Add TELLER,J : If TELLER>TL Then TELLER=1
TT$=Mid$(T$,TELLER,1)
NR=Instr(TK$,TT$)
Screen Copy 0,X1(NR),Y1(NR),X1(NR)+16,Y1(NR)+16 To 1,350,210
Get Block 1,350,210,16,16,0
Vrev Block 1
Put Block 1,350,227,%111
Do
If Mouse Click=1
EINDE
End If
Scroll 1
Wait Vbl
P=P+1
If P>4 Then Goto ERUIT
Loop
ERUIT:
Loop
End Proc
Procedure SCHERM
Auto View Off
T$=T$+"yep, een mirror scroll in amos, als de scroll 'bibberd' dan moet"
T$=T$+" je een een paar keer op een toets drukken. dat knipperen is een"
T$=T$+" van de vervelendste 'bugs' in amos! see ya soon......"
TK$="abcdefghijklmnopqrstuvwxyz0123456789.,:;!?()+-='^ "
TL=Len(T$)
Randomize Timer
Update Every 2
View
End Proc
Procedure SCHERMEN
Break Off
Auto View Off
Unpack 15 To 0
Screen Open 1,380,Screen Height,Screen Colour,Lowres
Led Off : Flash Off : Curs Off : Hide On
Cls 0
Get Palette 0 : Palette $0,$0,
Def Scroll 1,0,210 To 380,243,-3,0
Screen Display 1,120,50,,
Screen Open 2,390,130,4,Lowres : Palette $3,$3,$FFF
Screen Display 2,,41,, : Flash Off : Curs Off : Draw 0,128 To 390,128
Screen Open 3,390,150,4,Lowres : Palette $3,$3,$FFF
Screen Display 3,,170,, : Flash Off : Curs Off : Draw 0,0 To 390,0
Auto View On : Hide On
YS2=41
YS3=170
For JV=1 To 125
Dec YS2
Inc YS3
Screen Display 2,,YS2,,
Screen Display 3,,YS3,,
Wait Vbl
Next JV
End Proc
Procedure EINDE
Erase 15
Screen Close 1
Screen Close 2
Screen Close 3 : Screen 0 : Cls 0
Dir$="AMOS_COMPACT2:"
Run "menu.amos"
End Proc