home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disc 16
/
Commodore_Disc_16_19xx_-_de.d64
/
goldfever
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
4KB
|
151 lines
0 rem *****************************
1 rem * *
2 rem * g o l d f e v e r *
3 rem * *
4 rem * (c) 1987 by *
5 rem * *
6 rem * harald furth *
7 rem * *
8 rem *****************************
9 :
10 poke55,.:poke56,114:poke53280,.:poke53281,.:poke53265,11:w=peek(186)
20 ifo=.theno=1:load"gf/m",w,1
22 ifo=1theno=2:load"gf/t",w,1
30 sys29258:mu=.:di=1
35 rem---------------------------------
36 rem geschwindigkeit der aufzuege
37 rem---------------------------------
38 l1=1:l2=2:l3=3:l4=4:l5=5:l6=5:l7=5:l8=5
39 rem---------------------------------
40 onl1gosub3000,3002,3004,3006,3008
41 onl2gosub3500,3502,3504,3506,3508
42 onl3gosub4000,4002,4004,4006,4008
43 onl4gosub4500,4502,4504,4506,4508
44 onl5gosub5000,5002,5004,5006,5008
45 onl6gosub5500,5502,5504,5506,5508
46 onl7gosub6000,6002,6004,6006,6008
47 onl8gosub6500,6502,6504,6506,6508
50 fori=1to5:hf$=right$("000000"+mid$(str$(1200-i*200),2),6)
60 n$(i)=hf$+"hfs ":next
160 ifpeek(186)=1then310
190 open1,8,15:open2,8,2,"gf/score,s,r":input#1,a,b$,c,d:ifa<>.then280
220 fori=1to5:input#2,n$(i):next
280 close1:close2
310 gosub1780
340 poke49236,.:poke49237,.
350 poke49238,1:poke53265,11:print"[147]":fa=6:fb=14:gosub2000:poke211,6:poke214,3
354 sys58640:print"[158][192][193][194][201][202][203][166] [192][187][188][217][193][219][217][193][219][166] [167][217][193][219][192][193][218]";
355 printspc(13)"[195][196][197][195] [214][195] [195][189][190][220][221] [220][221] [168][169][170][220][221] [220][223][174]";
356 printspc(13)"[198][199][200][163][164][165][198][199][161][198][191]@[146][207] [255][199][161][171][172][173][255][199][161][207][175][176]";
358 printspc(13)"written 1987 by harald furth";
360 printspc(13)"[177][178][179] start";
361 printspc(27)"[180][181][182]";
362 printspc(37)"[177][178][183] pause";
363 printspc(27)"[180][181][184]";
364 printspc(37)"[177][178][185] music on-off";
365 printspc(20)"[180][181][184]";
390 poke53265,27:poke49235,.
400 forze=.to1000:ifpeek(197)=4then430
410 next:goto1180
430 poke49158,1:poke49238,.:poke53278,.
460 poke49170,.:wait49170,10
490 s=.:fori=.to5:s=s+peek(49157-i)*10^i:next
520 s$=right$("000000"+mid$(str$(s),2),6)
550 ifs$=>n$(5)thendi=.:poke49238,1:goto610
580 ifpeek(49235)=.then350
590 goto340
610 print"[147][159] please enter your name"
620 poke211,14:poke214,15:sys58640:fort=.to9:poke55950+t,4:next
640 print"----------"
670 print
700 printtab(14)"----------"
730 print"[158] abcdefghijklmnopqrstuvwxyz. r e"
760 b1=35470:b2=5:b3=35661:b1$="<[157]>[145][145][145]":b2$=" [157] [145][145][145]"
790 print"[145][145]"tab(b2)b1$:poke53265,27
820 j=peek(56320):ifj=111andb2=35then1000
850 ifj=111andb2=33andb1>35470thenpokeb1-1,32:b1=b1-1:gosub1600
880 ifj=111andb2<32thenpokeb1,peek(b3):b1=b1+1:gosub1600
910 ifj=123andb2>5thenprinttab(b2)b2$:b2=b2-1:gosub1660
940 ifj=119andb2<35thenprinttab(b2)b2$:b2=b2+1:gosub1690
970 ifb1<35480then820
1000 n$="":fori=.to9:x=peek(35470+i)+64
1030 ifx=>96thenx=x-64
1060 n$=n$+chr$(x):next
1090 n$(.)=s$+n$
1120 fori=1to5:ifn$(.)<n$(i)thennext
1150 forz=6toi+1step-1:n$(z)=n$(z-1):next:n$(i)=n$(.)
1180 poke53265,11:print"[147]":fa=2:fb=10:gosub2000:poke211,9:poke214,3:sys58640
1190 print"[159]bcd[146][201][202][203][192][193]a[146] [217][193][219][166][166] [167][217][193][219]";
1192 printspc(20)" [195] [195] [214][220][199][200] [220][221] [195][168][169][170][220][221]";
1194 printspc(21)" [207] [163][164][165][207] [207] [207][171][172][173][255][199][161]"
1210 print:fori=1to5
1240 print"[158]"i". "right$(n$(i),10)"[156] "left$(n$(i),6):next
1270 poke53265,27
1360 ifpeek(186)=1ordi=1then1540
1390 ifpeek(49235)=.thenpoke49235,1:poke54290,16:mu=1
1420 open2,8,2,"@:gf/score,s,w"
1450 fori=1to5:print#2,n$(i):next
1480 close2:di=1:ifmu=1thenpoke49235,.:mu=.:goto1540
1510 forx=49236to49237:pokex,.:next
1540 gosub1780:forze=.to1000:ifpeek(197)=4then430
1550 next:goto350
1600 poke54276,.:poke54278,.:poke54273,200:poke54277,7:poke54276,33
1630 foru=.to300:next:return
1660 gosub1720:printtab(b2)b1$:b3=b3-1:return
1690 gosub1720:printtab(b2)b1$:b3=b3+1:return
1720 poke54276,.:poke54278,.:poke54273,5:poke54277,7:poke54276,17:return
1780 fori=1to6:q$=mid$(n$(1),i,1):q=val(q$):poke49251+i,q:next:return
2000 poke53270,216:poke53282,fa:poke53283,fb:poke646,10
2002 print"[][][][][][][][][][][][][][][][][][][][]";
2010 forx=.to9:print"[ ]";
2012 print"] [";:next
2020 print"[][][][][][][][][][][][][][][][][][][][]":return
3000 v1=3:u1=.:goto3010
3002 v1=2:u1=.:goto3010
3004 v1=1:u1=.:goto3010
3006 v1=.:u1=.:goto3010
3008 v1=.:u1=1
3010 poke29424,u1:poke32133,v1:return
3500 v2=3:u2=.:goto3510
3502 v2=2:u1=.:goto3510
3504 v2=1:u2=.:goto3510
3506 v2=.:u2=.:goto3510
3508 v2=.:u2=1
3510 poke32708,u2:poke49862,v2:return
4000 v3=3:u3=.:goto4010
4002 v3=2:u3=.:goto4010
4004 v3=1:u3=.:goto4010
4006 v3=.:u3=.:goto4010
4008 v3=.:u3=1
4010 poke32709,u3:poke49863,v3:return
4500 v4=3:u4=.:goto4510
4502 v4=2:u4=.:goto4510
4504 v4=1:u4=.:goto4510
4506 v4=.:u4=.:goto4510
4508 v4=.:u4=1
4510 poke32710,u4:poke49864,v4:return
5000 v5=3:u5=.:goto5010
5002 v5=2:u5=.:goto5010
5004 v5=1:u5=.:goto5010
5006 v5=.:u5=.:goto5010
5008 v5=.:u5=1
5010 poke32711,u5:poke49865,v5:return
5500 v6=3:u6=.:goto5510
5502 v6=2:u6=.:goto5510
5504 v6=1:u6=.:goto5510
5506 v6=.:u6=.:goto5510
5508 v6=.:u6=1
5510 poke32712,u6:poke49866,v6:return
6000 v7=3:u7=.:goto6010
6002 v7=2:u7=.:goto6010
6004 v7=1:u7=.:goto6010
6006 v7=.:u7=.:goto6010
6008 v7=.:u7=1
6010 poke32713,u7:poke49867,v7:return
6500 v8=3:u8=.:goto6510
6502 v8=2:u8=.:goto6510
6504 v8=1:u8=.:goto6510
6506 v8=.:u8=.:goto6510
6508 v8=.:u8=1
6510 poke32714,u8:poke49868,v8:return