home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
demos
/
demo8.amos
/
demo8.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1991-02-11
|
2KB
|
95 lines
Load "Robots:Music/Music3"
Load "Robots:Bobs/Bobs2.abk"
Screen Open 0,320,512,8,Lowres
Flash Off : Hide : Curs Off
Palette 0,$202,$404,$606,$808,$B0D,$D0D,$F0F,$2,$4,$6,$8,$B,$D,$F,$1F
Screen Open 1,320,512,8,Lowres
Screen Display 0,140,,,256
Screen Display 1,140,,,256
Wait Vbl
Dual Playfield 0,1
Cls 0
Screen 0
Gosub GROUND
'
Screen 1
Gosub VAN
'
Channel 1 To Screen Offset 1
Channel 0 To Screen Offset 0
A$="Loop:M 0,235,90;M 0,-235,90:Jump Loop"
B$="Loop:M 0,235,50;M 0,-235,50:Jump Loop"
Amal 1,A$
Amal 0,B$
Amal On
'
Screen 0
'
Unpack 12 To 3 : Screen To Back 3
Unpack 13 To 4 : Screen To Back 4
Unpack 14 To 2 : Screen To Back 2
Screen Open 5,320,256,2,Lowres : Curs Off : Screen To Back 5 : Flash 0,"(000,5)(fff,2)"
'
'
Volume 0
Music 1
For N=0 To 63 : Wait 2
Volume N
Next N
'
Wait 100
Screen 3 : Bob 1,167,31,1
Screen To Front 3
Goto ROO
'
GROUND:
Ink 0 : Bar 0,0 To 320,512
Unpack 10,0,0
Return
'
VAN:
Ink 0 : Bar 0,0 To 320,512
Unpack 10,0,0
Return
'
ROO:
If Mouse Key=1 Then PAUL
'
Gosub LEDS
Wait Vbl
Goto ROO
LEDS:
If Mouse Key=1 Then PAUL
X2=Vumeter(3)
X1=Vumeter(0)
X4=Vumeter(2)
X3=Vumeter(1)
If Mouse Key=1 Then PAUL
If X2>V2 Then Screen 3 : Bob 2,167,31,2 : Wait 8 : Bob Off 2
If Mouse Key=1 Then PAUL
If X1>V1 Then Screen 3 : Bob 2,167,31,2 : Wait 8 : Bob Off 2
If Mouse Key=1 Then PAUL
If X4>V4 Then V4=Rnd(5)
If Mouse Key=1 Then PAUL
If X3>V3 Then Dual Priority 1,0
If Mouse Key=1 Then PAUL
If X2>V2 Then Dual Priority 0,1
If Mouse Key=1 Then PAUL
'
Screen To Front V4 : Randomize Timer
If Mouse Key=1 Then PAUL
'
Return
'
Procedure PAUL
For V=63 To 0 Step -1
Volume V : Wait 2
Next V
Music Off : Erase 3 : Erase 1
For S=0 To 5
Screen S
Fade 5 : Wait 75
Screen Close S
Next S
Run "Robots:Demo4.Amos"
End Proc