home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
baslib2.zip
/
DROPBUCK.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-03-22
|
3KB
|
118 lines
title$="Drop In The Bucket"
title1$="By Joey Latimer"
title2$="Translated to Quickbasic 2.01"
title3$="By Dennis Dreyer, 3/87"
width 40
color 14,6,4
cls
dim bs(13,2),ch(13,4):hs=0:sc=0
b$="":m$="*":sp$=chr$(32):d$=sp$+sp$+"."
for x=1 to 14:dt$=dt$+d$:next x:dt$="."+dt$
for x=1 to 13:for y= 1 to 4:read ch(x,y):next y,x
for x=1 to 13:read ko,n:bs(x,1)=ko:bs(x,2)=n
next x
NNAME:
color 14,6,4:cls
print tab(9);title$
print tab(9);title1$
print
print tab(9);title2$
print tab(9);title3$
PRINT:print "Press space bar to drop ball in bucket, going in `X' bucket will end game."
print
for w=1 to 15000:next w
cls
color 0
locate 3,1,0:for x=1 to 6:print sp$;mid$(DT$,2,38)
print sp$;mid$(dt$,3,38):print sp$;mid$(dt$,4,38)
next x:print:for L=1 to 3:print sp$;
for x=1 to 13:color bs(x,1)
for y=1 to bs(x,2):print chr$(219);:next y,x
if L<3 then print
next L:read TX$:color 1:locate 25,1:print tx$;
locate 12,6:print "Press <SPACE BAR> to begin or"
locate 13,16:print "<Q> to quit";
ANS1:
K$=inkey$:If k$="Q" or K$="q" then cls:end
if K$<>SP$ then goto ANS1
locate 12,6:color 0
print sp$;left$(dt$,30):print sp$;mid$(dt$,3,34)
PGM1:
SC=0:color ,,2:locate 1,19:print sp$;sp$;
locate 1,6:color 1
print "High score:";HS;" Score: 0 "
PGM2:
co=int(rnd*30)+5:ro=2:fl=1
PGM3:
locate ro,co:print m$;
for de = 1 to 10:next de
k$=inkey$:if k$=sp$ then goto PGM6
locate ro,co:print sp$;
if co=2 or co=39 then fl=-fl:sound 3300,1
co=co+fl:goto PGM3
PGM4:
ro=ro+1:if ro=22 then goto PGM7
P=screen(ro,co):if p<>46 then goto PGM6
sound 1000,1
PGM5:
I=int(rnd*3)-1:if I=0 then goto PGM5
co=co+I:If co<2 or co >39 then co=hc:goto PGM5
PGM6:
hr=ro:hc=co:locate ro,co:print m$;
for de=1 to 50:next de
locate hr,hc:print sp$;:goto PGM4
PGM7:
for x=1 to 13
if co>=ch(x,1) and co<=ch(x,2) then color ,,CH(x,3):t=ch(x,4):x=13
next x:if t=50 then t=t+rnd*50
if t=0 then goto PGM8
for x=0 to t-1:sound 500+t*5,1
if x>50 then color ,,rnd*15
sc=sc+1:if sc>hs then hs=sc
locate 1,6:color 1
print "High score:";HS;" Score:";SC;" ";
next x:goto PGM2
PGM8:
for x=70 to 20 step -1:sound x*5,1:next x
locate 11,16:print "Game Over"
locate 12,6:print "Press <SPACE> to play again"
locate 13,13:print "or <Q> to quit."
ANS2:
k$=inkey$:if k$="Q" or k$="q" then cls:end
if k$ <> SP$ then goto ANS2
locate 11,8:color 0
print mid$(dt$,4,18):print sp$;mid$(dt$,2,33)
print sp$;mid$(dt$,3,34):Goto PGM1
data 2,2,4,0,3,7,2,5,8,8,4,0,9,12,1,10,13,16,4,0
data 17,19,6,25,20,21,3,50,22,24,6,25,25,28,4,0
data 29,32,1,10,33,33,4,0,34,38,2,5,39,39,4,0,4,1
data 2,5,4,1,1,4,4,4,6,3,3,2,6,3,4,4,1,4,4,1,2,5
data 4,1
data " X 5 X 10 X 25 ?? 25 X 10 X 5 X"