home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
subroutines
/
roll_screen.amos
/
roll_screen.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1991-06-13
|
1KB
|
32 lines
' The Below procedure will roll your screen into view
' if you have any sprites in bank one then they will be
' replaced when the operation is finished.
' Please leave bank 15 clear.
' To see how long the process tool just use this
' Print Param
'
' Name$ is the name of your picture
' Colours is the the number of colours the picture uses
' If Speedy=-1 then screen will roll fast
' If Speedy=0 then screen will roll slow
'
Procedure ROLL_SCREEN_[NAME$,C0LOURS,SPEEDY]
' Procedure written by Brett George
Hide On : Bank Swap 1,15
Screen Open 7,320,266,C0LOURS,Lowres : Flash Off : Cls 0
Screen Open 0,320,266,C0LOURS,Lowres : Flash Off : Cls 0
Screen 7 : Load Iff NAME$,7 : Screen 0
Get Palette(7) : Screen To Front 0 : B=40 : Timer=0
If SPEEDY=0 Then Autoback 0
For A=0 To 176
If A/2.2=Int(A/2.2) Then Dec B
Get Bob 7,1,0,A To 320,A+1
Get Bob 7,2,0,A+15 To 320,A+B
No Mask
Paste Bob 0,A,1
Paste Bob 0,A+2,(Hires+Laced)/2
If SPEEDY=0 Then Screen Swap : Wait Vbl
Next
Screen Copy 7 To 0
Screen Close 7 : Erase 1 : Bank Swap 15,1
End Proc[Timer/50]