home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
126-150
/
apd127
/
2
/
2.amosSourceCode
next >
Wrap
AMOS Source Code
|
1990-08-11
|
10KB
|
405 lines
Screen Open 0,350,260,32,Lowres : Rem ---- Good Old RAMOS!
Break Off : Rem ---- Take this out so you can CRTL-C
'
' Rob's Demo contribution for
' the Cybornetics Mega-Effort.
'
' These are basic text routines with
' pictures changing to the vu's.
'
' All credits are in the text!
'
' Written on 13/1/91.
'
' Updated on 3/2/91.
'
'
'
Dim MESSAGE$(28) : Rem ---- The number of messages
Global ROUTINE,MESSAGE$(),MESSAGE_NO,PIC_TURE
MESSAGE_NO=1 : Rem ----
PIC_TURE=1 : Rem ---- Starting Values
ROUTINE=1 : Rem ----
'
SETUP
MUZIK
'
Every 200 Proc CHECK_ROUTINE
'
Sprite 7,350,350,7
'
Sprite 8,70,160,10
A$="A 0, (1,3)(2,3)(3,3)(4,3)(5,3)(6,3)(7,3)(8,3)(9,3)(10,3) ; "
A$=A$+"L: M 7,0,2 ;J L"
Amal 8,A$
'
Sprite 9,70,230,11
B$="A 0, (11,3)(12,3)(13,3)(14,3)(15,3)(16,3)(17,3)(18,3)(19,3)(20,3) ; "
B$=B$+"L: M 7,0,2 ;J L"
Amal 9,B$
'
Amal On
'
Repeat
If Vumeter(1)>50
CHANGE_PIC
End If
Until Mouse Key=1 : Rem ---- Waits for the mouse before ending
'
FINISH
'
Procedure FINISH
Every Off
For MUZ=63 To 0 Step -1
Wait 2
Mvolume MUZ : Rem ---- Fades the Muzik
Next MUZ
BYE_ANIM
End Proc
'
Procedure SETUP
'
' ---- Screen 0 is used as the main screen
' ---- Screen 1 holds the pictures and logos
' ---- Screen 2 is where the messages are written
' ---- Screen 3 is the animation pictures
'
' ---- This demo requires the Bocklin font to run
'
Screen 0 : Paper 0 : Hide On : Flash Off : Curs Off : Cls
Screen Open 2,320,200,32,Lowres : Rem ---- messages
Screen 2 : Paper 31 : Hide On : Curs Off : Cls : Screen Hide 2
Screen 2 : Ink 0,31, : Paper 31 : Cls
Get Fonts
Set Font 3 : Rem ---- That lovely Bocklin thingy
Set Text 2
Screen Hide 2
'
Unpack 8 To 3 : Rem ---- Animation bits
Screen Hide 3
Unpack 7 To 1 : Screen Hide 1 : Rem ---- Simpleton Picture
Screen To Front 0 : Screen 0 : Get Palette 1
WOOSH
Screen Copy 1,1,1,125,248 To 0,20,9 : Rem ---- my Main Man!
SET_UP_MESSAGES
End Proc
'
Procedure MUZIK
Music 1 : Rem ---- I can't remember what this does!
End Proc
'
Procedure CHANGE_PIC
Screen 0 : Ink 31 : Bar 160,19 To 320,255 : Rem ---- clears the piccy bit
On PIC_TURE Proc PIC1,PIC2,PIC3,PIC4,PIC5,PIC6 : Rem ---- calls the relevant procedure
Add PIC_TURE,1,1 To 6
'
End Proc
'
Procedure PIC1
Screen Copy 1,250,100,310,200 To 0,205,110
End Proc
'
Procedure PIC2
Screen Copy 1,270,12,315,80 To 0,205,23
End Proc
'
Procedure PIC3
Screen Copy 1,135,208,256,250 To 0,166,95
End Proc
'
Procedure PIC4
Screen Copy 1,130,156,245,205 To 0,172,180
End Proc
'
Procedure PIC5
Screen Copy 1,130,78,247,157 To 0,172,95
End Proc
'
Procedure PIC6
Screen Copy 1,130,2,270,76 To 0,162,20
End Proc
'
Procedure CHECK_ROUTINE
' ---- this calls the procedure which calls the text wipe which calls an anim.
On ROUTINE Proc ROUTE1,ROUTE2,ROUTE3,ROUTE4,ROUTE5,ROUTE6,ROUTE7
End Proc
'
Procedure ROUTE1
TUNG
DROP_TEXT
End Proc
'
Procedure ROUTE2
WINK
DROP_TEXT_II
End Proc
'
Procedure ROUTE3
TUNG
DROP_TEXT_III
End Proc
'
Procedure ROUTE4
WINK
DROP_TEXT_IV
End Proc
'
Procedure ROUTE5
TUNG
DROP_TEXT_V
End Proc
'
Procedure ROUTE6
WINK
DROP_TEXT_VI
End Proc
'
Procedure ROUTE7
TUNG
DROP_TEXT_VII
End Proc
'
Procedure DROP_TEXT
' ---- wipe on from the left
Screen 2 : Ink 0 : Paper 31 : Cls
'
Text 1,12,MESSAGE$(MESSAGE_NO)
A=0
Repeat
Screen Copy 2,A,4,A+1,15 To 0,A,0
Inc A
Until A=320
Inc MESSAGE_NO
If MESSAGE_NO=5 : Rem --- if it's the end of the messages.
ROUTINE=2
End If
Every On
End Proc
'
Procedure DROP_TEXT_II
' ---- wipe on from the right
Screen 2 : Ink 0 : Paper 31 : Cls
'
Text 1,12,MESSAGE$(MESSAGE_NO)
A=320
Repeat
Screen Copy 2,A,4,A+1,15 To 0,A,0
Dec A
Until A=0
Inc MESSAGE_NO
If MESSAGE_NO=9 : Rem ---- if it's the end of the messages.
ROUTINE=3
End If
Every On
End Proc
'
Procedure DROP_TEXT_III
' ---- meet in the middle
Screen 2 : Ink 0 : Paper 31 : Cls
Text 1,12,MESSAGE$(MESSAGE_NO)
A=320
B=0
Repeat
Screen Copy 2,A,4,A+1,15 To 0,A,0
Screen Copy 2,B,4,B+1,15 To 0,B,0
Dec A
Inc B
Until A=150
Inc MESSAGE_NO
If MESSAGE_NO=13 : Rem ---- if it's the end of the messages.
ROUTINE=4
End If
Every On
End Proc
'
Procedure DROP_TEXT_IV
' ---- go from the middle outwards
Screen 2 : Ink 0 : Paper 31 : Cls
Text 1,12,MESSAGE$(MESSAGE_NO)
A=150
B=150
Repeat
Screen Copy 2,A,4,A+1,15 To 0,A,0
Screen Copy 2,B,4,B+1,15 To 0,B,0
Dec A
Inc B
Until A=0
Inc MESSAGE_NO
If MESSAGE_NO=17 : Rem ---- if it's the end of the messages.
ROUTINE=5
End If
Every On
End Proc
'
Procedure DROP_TEXT_V
' ---- go from the middle and the edge. ooerr.
Screen 2 : Ink 0 : Paper 31 : Cls
'
Text 1,12,MESSAGE$(MESSAGE_NO)
A=150
B=150
C=0
D=320
Repeat
Screen Copy 2,A,4,A+1,15 To 0,A,0
Screen Copy 2,B,4,B+1,15 To 0,B,0
Screen Copy 2,C,4,C+1,15 To 0,C,0
Screen Copy 2,D,4,D+1,15 To 0,D,0
Dec A
Inc B
Inc C
Dec D
Until A=55
Inc MESSAGE_NO
If MESSAGE_NO=21 : Rem ---- if it's the end of the messages.
ROUTINE=6
End If
Every On
End Proc
'
Procedure DROP_TEXT_VI
' ---- come down from top
Screen 2 : Ink 0 : Paper 31 : Cls
'
Text 1,12,MESSAGE$(MESSAGE_NO)
A=0
Repeat
Screen Copy 2,0,A+4,320,A+5 To 0,0,A
For T=1 To 500 : Next T
Inc A
Until A=15
Inc MESSAGE_NO
If MESSAGE_NO=25 : Rem ---- if it's the end of the messages.
ROUTINE=7
End If
Every On
End Proc
'
Procedure DROP_TEXT_VII
' ---- go up from bottom
Screen 2 : Ink 0 : Paper 31 : Cls
'
Text 1,12,MESSAGE$(MESSAGE_NO)
A=15
Repeat
Screen Copy 2,0,A+4,320,A+5 To 0,0,A
For T=1 To 500 : Next T
Dec A
Until A=0
Inc MESSAGE_NO
If MESSAGE_NO=29 : Rem ---- if it's the end of the messages.
ROUTINE=1 : MESSAGE_NO=1
End If
Every On
End Proc
'
Procedure WINK
' ---- winks his eye
For A=4 To 132 Step 32
Screen Copy 3,A,13,A+24,36 To 0,81,48
Wait 1
Next A
Wait 2
For A=100 To 4 Step -32
Screen Copy 3,A,13,A+24,36 To 0,81,48 : Rem ---- next stage
Wait 1
Next A
Every On : Rem ---- continue loop
End Proc
'
Procedure TUNG
' ---- sticks his tounge out at you
For A=176 To 272 Step 32
Screen Copy 3,A,16,A+25,41 To 0,69,100
Wait 2
Next A
Wait 2
For A=240 To 176 Step -32
Screen Copy 3,A,16,A+25,41 To 0,69,100
Wait 2
Next A
Screen Copy 1,50,92,82,124 To 0,69,100 : Rem ---- no tounge
Every On
End Proc
'
Procedure BYE_ANIM
' ---- shoots the catapault
Every Off
Amal Off
Sprite Off
Screen 0 : Ink 31 : Bar 160,19 To 320,255
TUNG
Wait 30
Screen Copy 3,8,48,40,80 To 0,29,84 : Rem ---- finger 1
Wait 2
Screen Copy 3,137,50,190,96 To 0,30,86 : Rem ---- ball move 1
Wait 2
Screen Copy 3,72,50,129,95 To 0,29,86
Wait 2
Sam Play 1
Screen Copy 3,80,120,280,250 To 0,140,100 : Rem ---- big ball
Wait 30
Every Off
WINK
Every Off
MEGA_WIPE
End Proc
'
Procedure MEGA_WIPE
' ---- that bit at the end where the screen fades
Ink 31
Music 1 : Mvolume 60
Tempo 25
Every Off
For S=1 To 255
For T=S To 255 Step 11
Bar 1,T To 320,T+1
Next T
Next S
For VOL=60 To 0 Step -1
Mvolume VOL : Rem ---- Play the music at a ridiculous speed
Wait 1
Next VOL
End Proc
'
Procedure SET_UP_MESSAGES
' ---- define the message numbers
MESSAGE$(1)=" YO! And welcome to Rob's bit in this demo. "
MESSAGE$(2)=" Greetz to all members of Cybornetics! "
MESSAGE$(3)=" Yo Matt! What else do you want??? "
MESSAGE$(4)=" Shall we try a different text wipe??? "
MESSAGE$(5)=" How about this then! Not bad eh. "
MESSAGE$(6)=" *** This demo was done by Rob of CYS *** "
MESSAGE$(7)=" Thankz to Stew for the muzic! "
MESSAGE$(8)=" He done the music fo the whole mega-demo. "
MESSAGE$(9)=" Yeah!! Rave on dudes. Who needs sprites??? "
MESSAGE$(10)=" This demo just keeps getting better. "
MESSAGE$(11)=" Cowabunga! This is really Awesome! "
MESSAGE$(12)=" Or it could go this way!!!! "
MESSAGE$(13)=" ooerr. This is starting to bore me! "
MESSAGE$(14)=" What shall I do now to liven thing up a bit? "
MESSAGE$(15)=" What about some more interesting routines? "
MESSAGE$(16)=" <<< Ok! Lets do it now!!! >>> "
MESSAGE$(17)=" This is the last type of wipe I done! "
MESSAGE$(18)=" You can press the mouse button to quit "
MESSAGE$(19)=" Contact us if you like our stuff. (please!) "
MESSAGE$(20)=" Oh well, Here we go again.... "
MESSAGE$(21)=" So! I Lied.... This is Well 'Ard "
MESSAGE$(22)=" Cybornetics are Taking on the WORLD ! "
MESSAGE$(23)=" Did anyone Catch My Arnie Demo? "
MESSAGE$(24)=" Good wasn't it !!!!!! "
MESSAGE$(25)=" There are Rumours of a NEW Member Joining Us "
MESSAGE$(26)=" Stay Tuned To our Demos for more Information "
MESSAGE$(27)=" Now Honestly This is the last Wipe Type! "
MESSAGE$(28)=" So Here we go Again!!!!! "
End Proc
'
Procedure WOOSH
' ---- the pretty coulours at the start
For CTR=$0 To $FFF Step $11
Colour FFF,CTR
For T=1 To 500
Next T
Next CTR
Screen 0 : Colour FFF,0 : Paper 31 : Cls
End Proc