home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
games
/
super_scooter.amos
/
super_scooter.amosSourceCode
Wrap
AMOS Source Code
|
1988-01-19
|
8KB
|
389 lines
'''''''''''''''''''''''''''''''''''''''''
' Super Scooter '
' Fund Raising Utility. '
' Fizzy Pop 1991. '
' V2.0 '
'''''''''''''''''''''''''''''''''''''''''
Global NO,XMAS,TRIAL
SUPER_SCOOTER
Procedure SUPER_SCOOTER
Cls
Palette 0,0,$FFF
Curs Off
Print : Centre "Super Scooter"
Print
Print : Centre "Sprite Selection"
Print
Print : Centre "1 - Scooter"
Print : Centre "2 - Bicycle"
Print : Centre "3 - Skate Board"
Print : Centre "4 - Christmas Special"
SUPER_S
Screen Close 0
Hide On
BOW[250]
DLOGO
Close Editor
SUPER_SCOOTE
End Proc
Procedure SUPER_SCOOTE
Shared EXT,WINNER,A
Hide On
Load "SSM1.Abk"
Music 1
Do
SUPER_SCO
If EXT=1 Then SUPER_SCOOT : SUPER_SCOO
If EXT=0 Then SUPER_SC
SUPER_SCO
If EXT=1 Then SUPER_SCOOT : SUPER_SCOO
If EXT=0 Then SUPER_SCOOT
SUPER_SCO
If EXT=1 Then SUPER_SCOOT : SUPER_SCOO
If EXT=0 Then SUPER_
Loop
End Proc
Procedure SUPER_SCOOT
Shared WINNER,EXT
Randomize Timer
Hide On
Load "pac.1",6
Unpack 6 To 0
Screen Clone 1
Erase 6
Screen 0
Palette 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Screen Hide 1
Screen 0
If EXT=0
Curs Off
Paper 10
Print " "
Locate 1,1
Ink 15
Draw 0,0 To 10,0
Draw 0,0 To 0,10
Pen 15
Centre "T R I A L R U N !"
TRIAL=1
Else
For F=63 To 0 Step -1
Wait 1
Mvolume F
Next F
Load "SSM2.Abk"
Mvolume 63
TRIAL=0
End If
Auto View On
Fade 5 To 1
Wait 150
Screen Close 1
Hide On
Double Buffer
I=1
For G=-30 To 0
B=22
For F=1 To 5
Bob F,G,B-(XMAS*5),I
Wait 1
B=B+50
Next F
Inc I
If I=NO Then I=1
Next G
Wait 100
If TRIAL=0 Then Music 1
Dim A(5) : Dim I(5) : For F=1 To 5 : I(F)=1 : Next F
Do
For F=1 To 5
B=Rnd(10)
C=Rnd(2)
If B>C Then Inc A(F) : Bob F,A(F),22+(50*(F-1))-(XMAS*5),I(F) : If A(F)>280 Then Exit 2
If B>C Then Inc I(F) : If I(F)=NO Then I(F)=1
Next F
Loop
Wait 50
For H=0 To 300
For G=1 To 5
If G<>F Then Bob G,A(G),H+22+(50*(G-1))-(XMAS*5),I(G)
Inc I(G)
If I(G)=NO Then I(G)=1
Next G
Next H
For G=330 To -30 Step -1
Bob F,G,22+(50*(F-1))-(XMAS*5),I+$8000
Wait 1
Inc I
If I=NO Then I=1
Next G
WINNER=F
Fade 5
If TRIAL=0 Then For F=63 To 0 Step -1 : Wait 1 : Mvolume F : Next F : Load "SSM3.Abk" : Mvolume 63
Wait 10
End Proc
Procedure SUPER_SCOO
Shared WINNER
Curs Off
Auto View Off
Load "pac.2",6
Unpack 6 To 0
Curs Off
Paper 10
Print " "
Locate 1,1
Ink 15
Draw 0,0 To 10,0
Draw 0,0 To 0,10
Pen 15
Paper 10
Ink 10
Paint 10,10,1
Pen 15
Locate 2,10
Print " WELL DONE NUMBER";WINNER
Locate 2,11
Print " YOU HAVE WON THE RACE"
Locate 2,12
Print " NOW COLLECT YOUR WINNINGS!"
Screen Clone 1
Erase 6
Ink 10
Paint 10,10,1
Screen 0
Palette 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Screen Hide 1
Screen 0
Auto View On
Fade 5 To 1
Wait 150
Screen Close 1
Music 1
A=1
For F=-30 To 330
Bob 1,F,198-(XMAS*5),A
Wait 1
Inc A
If A=NO Then A=1
Next F
Fade 5
Load "SSM1.Abk"
Music 1
End Proc
Procedure SUPER_SCO
Shared EXT
Auto View Off
If XMAS=0
Load "pac.3",6
Else
Load "pac.3x",6
End If
Unpack 6 To 0
Screen Clone 1
Erase 6
Screen 0
Palette 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Screen Hide 1
Screen 0
Auto View On
Fade 5 To 1
Wait 150
Screen Close 1
Double Buffer
I=1
A=0
Do
For F=-30 To 330
Bob 1,F,198,I
Bob 2,330-F,198,I+$8000
If Mouse Key=%1 Then EXT=1 : Exit 2
If Mouse Key=%10 Then SUPER_S
Wait 1
Inc I
If I=NO Then I=1
Next F
Inc A
If A=2 Then EXT=0 : Exit
Loop
Fade 5
Wait 10
End Proc
Procedure SUPER_SC
Auto View Off
If XMAS=0
Load "pac.4",6
Else
Load "pac.4x",6
End If
Unpack 6 To 0
Screen Clone 1
Erase 6
Screen 0
Palette 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Screen Hide 1
Screen 0
Auto View On
Fade 5 To 1
Wait 150
Screen Close 1
Double Buffer
For F=-30 To 330
Bob 1,F,209,I
Bob 2,330-F,209,I+$8000
Wait 1
Inc I
If I=NO Then I=1
Next F
Fade 5
Wait 10
End Proc
Procedure SUPER_S
Clear Key
XMAS=0
Clear Key
Do
M$=Upper$(Inkey$)
If M$="1" Then Load "scooter.abk" : NO=6 : Pop Proc
If M$="3" Then Load "skt.abk" : NO=16 : Pop Proc
If M$="2" Then Load "bike.abk" : NO=9 : Pop Proc
If M$="4" Then Load "santa.abk" : NO=6 : XMAS=1 : Pop Proc
Loop
End Proc
Procedure SUPER_
Auto View Off
Load "pac.5",6
Unpack 6 To 0
Screen Clone 1
Erase 6
Screen 0
Palette 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Paper 0
Curs Off
Home : Print " "
Locate 0,27
Centre ".Written By Marc Of Fizzy Pop."
Print
Centre ".Using Amos."
Screen Hide 1
Screen 0
Auto View On
Fade 5 To 1
Wait 150
Screen Close 1
Wait 200
Fade 5
Wait 10
End Proc
'''''''''''''''''''''''''''''''''''''''''
' '
'''''''''''''''''''''''''''''''''''''''''
Procedure ALERT[A$,B$,C$,B]
Shared A
Screen Open 7,640,255,2,Hires
Palette $0,$FFF
Show On
Reserve Zone 3
Curs Off
A$=Upper$(A$)
Cls
H$=Border$(A$,1)
Locate 0,10
Centre H$
If B=1 Then Wait 100 : B=0 : Hide On : Pop Proc
Locate 0,14
D$=Zone$(B$,1)
E$=Zone$(C$,2)
F$=Border$(D$,2)
G$=Border$(E$,2)
Locate 15,13
Print F$
Locate 63,13
Print G$
B=0
DDO:
Do
D=Mouse Click
E=Mouse Zone
Inverse Off
If E=0 Then Locate 15,13 : Print F$ : Locate 63,13 : Print G$
If E=1 Then Inverse On : Locate 15,13 : Print F$
If E=2 Then Inverse On : Locate 63,13 : Print G$
Exit If D<>0 and E<>0
Loop
Bell
Inverse Off
If Mouse Zone=1 Then A=1 : Hide On : Screen Close 7 : Pop Proc
If Mouse Zone=2 Then A=0 : Hide On : Screen Close 7 : Pop Proc
Goto DDO
End Proc
Procedure CENFADE
Ink 0
A=0
Do
Box A,A To 320-A,255-A
Inc A
Exit If A=160
Loop
End Proc
Procedure BOW[A]
Set Rainbow 1,0,60,"(2,1,15)(2,-1,15)","",""
Set Rainbow 2,0,60,"","(2,1,15)(2,-1,15)",""
Set Rainbow 3,0,60,"","","(2,1,15)(2,-1,15)"
Rainbow 1,0,50,60
Rainbow 2,0,50,60
Rainbow 3,0,50,60
Channel 1 To Rainbow 1
Channel 2 To Rainbow 2
Channel 3 To Rainbow 3
Amal 1,"Loop: M 0,250,Z(63)+20; M 0,-250,Z(63)+20; J Loop"
Amal 2,"Loop: M 0,250,Z(31)+20; M 0,-250,Z(31)+20; J Loop"
Amal 3,"Loop: M 0,250,Z(15)+20; M 0,-250,Z(15)+20; J Loop"
Amal On
Wait A
Amal 1,"Loop: M 0,250,25; "
Amal 2,"Loop: M 0,250,25"
Amal 3,"Loop: M 0,250,25; "
Amal On
Wait 50
Amal Off
End Proc
Procedure DLOGO
Auto View On
Load Iff "Fizzy_Pop_Logo.IFF",0
Locate 12,26
Paper 0
Pen 9
Print "Super Scooter."
Screen Clone 1
Screen Hide 1
Screen 0
Flash Off
Hide On
Curs Off
Palette $0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Auto View On
Fade 10 To 1
Screen Close 1
Timer=0
FAD=0
Wait 100
Data 1,1,1,1,1,0,0,0,-1,-1,-1,-1,-1,0,0,1,1,1,1,1,0,0,0,-1,-1,-1,-1,-1,0,0,1,1,1,1,1,0,0,0,-1,-1,-1,-1,-1,0,0
Dim A(45)
Dim B(45)
For F=1 To 45
Read A
A(F)=A
B(F)=F
Next F
F=1
Do
For F=1 To 45
Def Scroll 1,60,169+F To 268,170+F,A(B(F)),0
Scroll 1
Add B(F),1,1 To 45
Next F
If Timer>1000 Then If FAD=0 Then FAD=1 : Fade 10 : Timer=0
If Mouse Key Then If FAD=0 Then FAD=1 : Fade 10 : Timer=0
If FAD=1 Then If Timer>150 Then Exit
Loop
End Proc