home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
maksiu
/
utils
/
eaissue3b.lha
/
Source_Code
/
PG_IFF_Picroll.AMOS
/
PG_IFF_Picroll.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1995-12-30
|
1KB
|
61 lines
Proc _IFFROOL
Procedure _IFFROOL
On Error Goto ER
H=10
Load Iff Fsel$("","","Select an IFF file"),0
Screen Hide 0
SM=K
Screen Open 1,Screen Width,Screen Height,Screen Colour,SM
Screen Hide 1
Curs Off
Flash Off
Cls 0
Get Palette 0
Screen Copy 0 To 1
Screen Open 0,Screen Width,Screen Height+1,Screen Colour,SM
Screen Hide 0
Curs Off
Flash Off
Cls 0
Get Palette 1
Screen Copy 1 To 0
Screen Close 1
Hide
Screen Hide 0
Screen Open 1,Screen Width,H*2,Screen Colour,Lowres
Curs Off
Flash Off
Cls 0
Screen Hide 1
Screen Open 2,Screen Width,Screen Height(0)+(H*2),Screen Colour,SM
Screen Display 2,,,,Screen Height(0)
Curs Off
Flash Off
Get Palette 0
Cls 0
For Y=1 To Screen Height(0)-1
YY=Y
For LOP=Y To Y+H
Screen Copy 0,0,LOP+(H*4),Screen Width,(LOP+(H*4))+1 To 1,0,(LOP-YY)*2
Screen Copy 0,0,LOP+(H*4),Screen Width,(LOP+(H*4))+1 To 1,0,(LOP-YY)*2+1
Next LOP
Screen 1
Get Block 1,0,0,Screen Width,Screen Height
Screen 2
Vrev Block 1
Put Block 1,0,Y
Screen Copy 0,0,Y-H,Screen Width,Y+1 To 2,0,Y-H
Wait Vbl
Next Y
Screen Close 0
Screen Close 1
Repeat
Until Inkey$<>"" or Mouse Key
Screen Close 2
Direct
ER:
Resume ER2
ER2:
Boom
End Proc
Edit