home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
utilities
/
mscroll.amos
/
mscroll.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1990-11-07
|
2KB
|
43 lines
' Basic Video-Titling Program. For Newsflash 12 by Spadge The Unwilling.
' This is a de-cramped version (the original was in just 6 lines and is
' a fully working demo in the source dir, unpack it with Powerpacker and
' run it!). The program allows a basic program to smooth-scroll screens
' for uses such as home-video titling etc.. it could be very easily
' extended and lots of features added.. to make the early version usable
' I made it so you just design your screens with Dpaint and this gives
' no limitations. You could of course add full font support and all the
' works, fades, other scrolls, copper fades/stencils.. thats for YOU to
' do.. here's the basic routine and an explanation of this very simple
' program...
'
' Spadge, July 5th 1990. (The original prog took 9mins to write :-)
'
Hide : Rem MOUSE OFF!
Cls 0 : Auto View Off : Flash Off : Rem SCREEN CLEAR, VIEW OFF, FLASH OFF
'
Load Iff "pic0",0 : Rem LOAD A -> BLANK <- SCREEN INTO SCREEN 0
Load Iff "pic1",1 : Rem LOAD PICS....
Load Iff "pic2",2
Load Iff "pic3",3
Load Iff "pic4",4 : Rem IT'S USEFUL IF YOU CAN SPACK THEM INTO BANKS AND
' CALL THEM UP WITH "UNPACK" LIKE IN THE DEMO
'
SZ=256 : NS=4 : S=1 : Rem SZ=Height of Pics in Pixels, NS=No.Screens, S=Speed
'
Dim SC(7) : Rem SPACE FOR 7 SCREENS-POSITION DATA
'
For F=0 To 7 : SC(F)=(F*SZ)+24 : Next F : Rem CALCULATE SCREEN POSITIONS
'
For F=1 To NS
Screen Display F,,SC(F),, : Rem DISPLAY SCREEN AT POSITION
Next F
'
Auto View On : Bell : Wait Key : Rem ALL READY, SWITCH DISPLAY ON
'
For F=1 To 3000 : For N=1 To NS
Screen Display N,,SC(N),, : SC(N)=SC(N)-S : Rem DISPLAY SCREENS & MOVE THEM
Next N : Wait Vbl
'
If Inkey$<>"" Then Bell : Wait Key : Rem IF A KEY IS PRESSED, WAIT AGAIN
'
Next F : Bell : Wait Key : Rem LOOP ROUND AGAIN OR WAIT IF FINISHED