home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
demos
/
birds-of-prey.amos
/
birds-of-prey.amosSourceCode
Wrap
AMOS Source Code
|
1990-12-02
|
7KB
|
311 lines
Rem ************************************
Rem * *
Rem * BIRDS OF PREY DEMO *
Rem * *
Rem * WRITTEN FOR *
Rem * *
Rem * SANDRA SHARKEY *
Rem * *
Rem ************************************
Close Workbench
Close Editor
Dir$="df0:"
Screen Close 0
Auto View On
Rainbow 0,0,0,0
Rainbow Del 0
Get Disc Fonts
SETUP:
Global MEG,PLACE,NO,T$
If Fast Free>0 or Chip Free>500000 Then MEG=1 Else MEG=0
Led Off
SSCROLL
Erase 8
INFO
For V=60 To 0 Step -1
Volume V
Wait 2
Next V
If MEG=1 Then Erase 3
Music Off
Volume 63
If MEG=1 Then Load "BirdMusic.Abk"
If MEG=0 Then Screen Close 0
Screen Open 1,320,256,4096,Lowres
Hide On
Colour 1,$0 : Curs Off
Load "Startpic.Abk",10
If MEG=0 Then Unpack 10 To 1 Else Unpack 10 To 0
Erase 10
Music 1
Wait 50
MEGDISPLAY
FINISH
Goto SETUP
'*************************************
'* END OF PROGRAMME *
'*************************************
Procedure DISPLAY
Do
For COUNT=1 To 8
If Mouse Key=1 Then Pop Proc
Read A
T$="Birds/Bird"+Str$(A)+".Abk"
T$=T$-" "
Load T$,10
Unpack 10 To 1
Erase 10
Wait 50
Next COUNT
Data 1,2,3,4,6,7,8,9
If MEG=0
Load "StartPic.Abk",10
Unpack 10 To 1
Erase 10
Wait 50
End If
Restore
Loop
End Proc
Procedure MEGDISPLAY
Do
For COUNT=1 To 8
If Mouse Key=1 Then Pop Proc
Read A
T$="Birds/Bird"+Str$(A)+".Abk"
T$=T$-" "
Load T$,10
LIFT
Unpack 10 To 1
Screen Display 1,135,45-270,,
Erase 10
DROP
Wait 50
Next COUNT
If MEG=0
Load "StartPic.Abk",10
LIFT
Unpack 10 To 1
Screen Display 1,135,45-270,,
Erase 10
DROP
Wait 50
End If
Restore
Loop
Data 1,2,3,4,6,7,8,9
End Proc
Procedure SSCROLL
Load "Winter.Abk"
Load "MegadethFont.Abk",8
Screen Open 0,320,256,32,Lowres
Colour 0,$0 : Colour 1,$0 : Colour 2,$0
Curs Off : Hide On
Dim X$(48),X(48),Y(48),XX(20),YY(20),O(4)
SCNT=1
CNT=31
SC$="...........WELCOME TO ANOTHER DEMONSTRATION OF THE DIGITISING "
SC$=SC$+"SERVICE BY WEIRD SCIENCE..........CONTACT US ON THE ABOVE NUMBER "
SC$=SC$+"TO DISCUSS YOUR REQUIREMENTS.............A BRIEF RUNDOWN OF THE "
SC$=SC$+"SERVICE AND COSTS FOLLOWS, IF YOU WISH TO QUIT THIS SCREEN PRESS THE "
SC$=SC$+"LEFT MOUSE BUTTON !!!!......GOOD YOU ARE STILL WITH ME......."
SC$=SC$+"WEIRD SCIENCE CAN DIGITISE ANY PICTURES FROM ANY VIDEO OF YOUR "
SC$=SC$+"CHOICE IN 4096 COLOURS......ON EACH DISK WE PUT UPWARDS OF 10 "
SC$=SC$+"PICTURES IN COMPACTED MEMORY BANKS OR JUST IFF FORMAT......."
SC$=SC$+"SOUNDS OR MUSIC FROM THE VIDEOS CAN BE INCLUDED ON A SEPARATE "
SC$=SC$+"DISK..........FOR THIS WE CHARGE ONLY TWO POUNDS AND FIFTY "
SC$=SC$+"PENCE PER DISK !!!!!!!........THIS CHARGE IS FULLY INCLUSIVE FOR "
SC$=SC$+"ALL AREAS WITHIN THE UNITED KINGDOM..........SIT BACK AND ENJOY "
SC$=SC$+"BIRDS OF PREY................"
SC$=SC$+" "
Unpack 8 To 0
Screen Open 1,354,Screen Height,32,Lowres
Screen Display 1,134,43,319,256
Screen To Front 1
Def Scroll 1,1,223 To 353,255,-4,0
Curs Off
Cls 0
Flash Off
Get Palette 0
SCRL$="ABCDEFGHIJKLMNOPQRSTUVWXYZ.,-+!?()':;0123456789 "
Gosub PIXD
Wait Vbl
Hide On
Curs Off
Music 1
Screen Copy 0,110,166,226,195 To 1,105,10
Screen Copy 0,234,170,302,189 To 1,135,40
Screen Copy 0,0,192,106,256 To 1,110,70
Screen Copy 0,115,197,278,215 To 1,80,120
TEL:
TEL$="0530 242233"
POS=100
For N=1 To 4
E$=Mid$(TEL$,N,1)
E=Instr(SCRL$,E$)
Screen Copy 0,X(E),Y(E),X(E)+31,Y(E)+31 To 1,POS,140
POS=POS+32
Next N
POS=38
For N=5 To Len(TEL$)
E$=Mid$(TEL$,N,1)
E=Instr(SCRL$,E$)
Screen Copy 0,X(E),Y(E),X(E)+31,Y(E)+31 To 1,POS,175
POS=POS+32
Next N
Wait 100
Goto STEXT
PIXD:
For F=1 To 48
Read X$(F),X(F),Y(F)
Next F
Return
Data "A",0,0
Data "B",33,0
Data "C",66,0
Data "D",99,0
Data "E",132,0
Data "F",165,0
Data "G",198,0
Data "H",231,0
Data "I",264,0
Data "J",0,33
Data "K",33,33
Data "L",66,33
Data "M",99,33
Data "N",132,33
Data "O",165,33
Data "P",198,33
Data "Q",231,33
Data "R",264,33
Data "S",0,66
Data "T",33,66
Data "U",66,66
Data "V",99,66
Data "W",132,66
Data "X",165,66
Data "Y",198,66
Data "Z",231,66
Data ".",264,66
Data ",",0,99
Data "-",66,99
Data "+",99,99
Data "!",132,99
Data "?",165,99
Data "(",198,99
Data ")",231,99
Data "'",264,99
Data ":",0,132
Data ";",33,132
Data "0",66,132
Data "1",99,132
Data "2",132,132
Data "3",166,132
Data "4",198,132
Data "5",231,132
Data "6",264,132
Data "7",0,165
Data "8",33,165
Data "9",66,165
Data " ",285,224
Rem
Rem ********* SCROLL TEXT ROUTINE **********
STEXT:
Scroll 1
Add CNT,4
If CNT>31
E$=Mid$(SC$,SCNT,1)
E=Instr(SCRL$,E$)
Screen Copy 0,X(E),Y(E),X(E)+31,Y(E)+31 To 1,320,223
CNT=0 : Inc SCNT
End If
If SCNT>Len(SC$) Then Goto EXIDEMO
If Mouse Key=1 Then Goto EXIDEMO
Wait Vbl
Goto STEXT
EXIDEMO:
Screen Hide 0
XW=1 : YW=1 : XS=134 : YS=43
Amal Off
DDD:
Screen Display 1,XS,YS,319-XW,256-YW
Rem YS=YS+1
Rem If XW<319 Then XW=XW+1
If YW<255 Then YW=YW+1
If YW>=255 Then Goto FFF
Goto DDD
FFF:
Cls 0
Screen Close 1
Screen Close 0
End Proc
Procedure DROP
Channel 0 To Screen Display 1
Amal 0,"Move 0,268,134"
Amal On
Wait 150
End Proc
Procedure LIFT
Channel 1 To Screen Display 1
Amal 1,"Move 0,-270,135"
Amal On
Wait 150
End Proc
Procedure INFO
Screen Open 0,320,256,32,Lowres
Colour 0, : Colour 1,$0 : Colour 2,$FFF : Colour 4,$F00
Hide On : Curs Off : Flash Off
Set Font 1
T$="HOLD LEFT" : PLACE=30 : NO=2
TYPE
T$="MOUSE BUTTON" : PLACE=70
TYPE
T$="DOWN TO" : PLACE=110
TYPE
T$="EXIT" : PLACE=180 : NO=4
TYPE
End Proc
Procedure FINISH
LIFT
If MEG=1
Channel 0 To Screen Display 0
Amal 0,"Move 0,-270,135"
Amal On
Wait 150
Screen Close 0
End If
Screen Close 1
For V=60 To 0 Step -1
Volume V
Wait 2
Next V
Erase 3
Erase 10
Volume 63
Screen Open 0,320,256,32,Lowres
Colour 0,$0 : Colour 1,$0 : Colour 2,$FFF : Colour 4,$F00
Curs Off : Hide On : Flash Off
Set Font 1
T$="PLEASE" : PLACE=30 : NO=4
TYPE
T$="WAIT" : PLACE=60
TYPE
T$="Re-loading" : PLACE=100 : NO=2
TYPE
T$="Main Screen" : PLACE=130
TYPE
End Proc
Procedure TYPE
Ink NO
L=Text Length(T$)
Text 160-L/2,PLACE,T$
End Proc
Rem **********************************
Rem * *
Rem * WANT SOME HAM PICTURES *
Rem * *
Rem * TAKEN FROM ANY VIDEO *
Rem * *
Rem * RING 0530 242233 *
Rem * *
Rem **********************************