home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun: Game Pak
/
rerun-gamepak
/
mystery
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
8KB
|
305 lines
10 dimp$(5),r$(6),w$(5):g=0
20 tq1=1665:tp2=1705:pl=1:re=0:wn=0
30 gosub990:gosub1140
40 jp=56320:cl=54272:tk=209:pl=1:po=tq1
50 form=1tosp
60 j1=peek(jp)
70 f1=jiand16
80 j1=15-(j1and15)
90 ifj1=4then140
100 ifj1=8then320
110 ifj1=1then500
120 ifj1=2then660
130 goto60
140 ifpeek(po-1)<>160then60
150 ifpl=2then170
160 tq1=tq1-1:poketq1,209:poketq1+1,160:po=tq1:goto180
170 tp2=tp2-1:poketp2,218:poketp2+1,160:po=tp2
180 gosub830
190 nextm
200 rt=int(rnd(0)*3)+1:ifrt=2thengosub2360
210 ifpl=2then240
220 iftq1=1502ortq1=1507ortq1=1526ortq1=1861ortq1=1788ortq1=1966thengosub1610
230 goto250
240 iftp2=1502ortp2=1507ortp2=1526ortp2=1861ortp2=1788ortp2=1966thengosub1610
250 ifd=1then280
260 ifpl=2thenpl=1:goto280
270 ifpl=1thenpl=2
280 gosub 1540:goto2080
290 ifpl=1then40
300 pl=2:po=tp2:tk=218:jp=56321
310 goto50
320 ifpeek(po+1)<>160then60
330 ifpl=2then350
340 tq1=tq1+1:poketq1,209:poketq1-1,160:po=tq1:gosub830:goto370
350 tp2=tp2+1:poketp2,218:poketp2-1,160:po=tp2
360 gosub830
370 nextm
380 rt=int(rnd(0)*3)+1:ifrt=2thengosub2360
390 ifpl=2then420
400 iftq1=1502ortq1=1507ortq1=1526ortq1=1861ortq1=1788ortq1=1966thengosub1610
410 goto430
420 iftp2=1502ortp2=1507ortp2=1526ortp2=1861ortp2=1788ortp2=1966thengosub1610
430 ifd=1then280
440 ifpl=2thenpl=1:goto280
450 ifpl=1thenpl=2
460 gosub 1540:goto2080
470 ifpl=1then40
480 pl=2:po=tp2:tk=218:jp=56321
490 goto50
500 ifpeek(po-40)<>160 then60
510 ifpl=2then530
520 tq1=tq1-40:poketq1,209:poketq1+40,160:po=tq1:gosub830:goto370
530 tp2=tp2-40:poketp2,218:poketp2+40,160:po=tp2
540 gosub830
550 nextm
560 rt=int(rnd(0)*3)+1:ifrt=2thengosub2360
570 iftq1=1502ortq1=1507ortq1=1526ortq1=1861ortq1=1788ortq1=1966thengosub1610
580 iftp2=1502ortp2=1507ortp2=1526ortp2=1861ortp2=1788ortp2=1966thengosub1610
590 ifd=1then620
600 ifpl=2thenpl=1:goto620
610 ifpl=1thenpl=2
620 gosub1540:goto2080
630 ifpl=1then30
640 p=2:po=tp2:tk=208:jp=56321
650 goto50
660 ifpeek(po+40)<>160then60
670 ifpl=2then690
680 tq1=tq1+40:poketq1,209:poketq1-40,160:po=tq1:gosub830:goto370
690 tp2=tp2+40:poketp2,218:poketp2-40,160:po=tp1
700 gosub830
710 nextm
720 rt=int(rnd(0)*3)+1:ifrt=2thengosub2360
730 iftq1=1502ortq1=1507ortq1=1526ortq1=1861ortq1=1788ortq1=1966thengosub1610
740 iftp2=1502ortp2=1507ortp2=1526ortp2=1861ortp2=1788ortp2=1966thengosub1610
750 ifd=1then780
760 ifpl=2thenpl=1:goto780
770 ifpl=1thenpl=2
780 gosub1540:goto2080
790 ifpl=1then30
800 pl=2:po=tp2:tk=94:jp=56321
810 goto50
820 s=54272:fore=stos+28:pokee,0:next
830 poke54296,12:poke54277,85:poke54278,197
840 poke54276,33:poke54273,1:poke54272,250
850 fort=1to100:next:poke54276,128:fort=1to10:next
860 return
870 forp=1to5:readp$(p):next
880 forr=1to6:readr$(r):next
890 forw=1to5:readw$(w):next
900 data mrs.lane,stepson,butler,maid,mistress
910 datalibrary,living rm,den,kitchen,lounge,study
920 datahammer,gun,chain,knife,poison
930 p=int(rnd(0)*5)+1
940 r=int(rnd(0)*6)+1
950 w=int(rnd(0)*5)+1
960 fort=1to100:next
970 ifre=1thenrestore:fori=1to16:readdd$:next:goto1140
980 return
990 print"[147]";chr$(14):poke53280,1:poke53281,1
1000 printtab(9)"[144][205]ystery of [204]ane [205]anor"
1010 printtab(12)"[194]y [202]im [211]anders"
1020 fort=1to1300:next:gosub870
1030 print"[147]":poke53281,7:poke53280,7
1040 printchr$(142)
1050 print"[144]how many will work on this case 1 or 2"
1060 getd:ifd<1ord>2then1060
1070 print"please enter names(6 letters max) then push return[146]"
1080 input"detective #1";d1$:ifd1$=""then1080
1090 ifd=2then1120
1100 gosub2940
1110 ifd=1then1140
1120 input"detective #2";d2$:ifd2$=""then1120
1130 gosub2940
1140 poke53265,peek(53265)and239:print"[147]":poke53281,0:poke53280,8
1150 fori=1024to1063:pokei,99:next
1160 fori=1063to1423step40:pokei,106:next
1170 fori=1024to1384step40:pokei,116:next
1180 fori=1384to1423:pokei,100:next
1190 fori=1043to1323step40:pokei,106:next
1200 fori=1044to1324step40:pokei,116:next
1210 printtab(12)"[158]push"
1220 printtab(8)"j[146]stk button"
1230 printtab(11)"to stop"
1240 printtab(10)"step-gen."
1250 print"";tab(16)"[155]12345678"
1260 fori=1425to1462:pokei,100:next:fori=1985to2022:pokei,99:next
1270 fori=1503to1983step40:pokei,116:next:fori=1464to1944step40:pokei,106:next
1280 ti$="000000"
1290 print"[152] [144][166] [144][166] [144][166][158] "
1300 print"[152] [144][166] [144][166] [144][166][158] "
1310 print"[152] [144][166] [144][166] [144][166] [144][166][158] "
1320 print"[152] [144][166] [144][166] [144][166] [144][166][158] "
1330 print"[144][166][166][166][166][166][166][166][152] [144][166][166][166] [144][166][166][166][166][166][166] [144][166][166][166] [144][166][166][166][166][158] "
1340 print" "
1350 print" "
1360 print"[144][166][166][166][166][166][166][166][155] [144][166] [144][166][166][166][156] [144][166][166][166][166][156] [144][166] [144][166][166][166][166][166][166][166][166][166]"
1370 print"[155] [144][166] [144][166][156] [144][166] [144][166][154] "
1380 print"[155] [144][166] [144][166][156] [144][166] [154] "
1390 print"[155] [144][166] [144][166][156] [144][166] [154] "
1400 print"[155] [144][166][156] [144][166] [144][166][154] "
1410 print"[155] [144][166][156] [144][166] [144][166][154] "
1420 print"library";tab(19)"living rm";tab(34)"den"
1430 print"kitchen";tab(16)"lounge";tab(31)"study"
1440 cl=54272:pokecl+1507,2:pokecl+1526,2:pokecl+1502,2
1450 pokecl+1788,2:pokecl+1966,2:pokecl+1861,2:poke1665,209:poke1705,218
1460 tq1=1665:tp2=1705
1470 printchr$(142):poke53265,peek(53265)or16
1480 gosub1490:gosub1540:gosub2330:goto2080
1490 print"[155]";tab(10);d1$
1500 ifd=1thenreturn
1510 printtab(25)"[145]";d2$
1520 fort=1to1500:next
1530 return
1540 ifpl=2then1580
1550 print"[155]";tab(10);d1$
1560 printtab(25)"[145][144] [155]"
1570 return
1580 print"";tab(10)"[144] [155]"
1590 printtab(25)"[145][155]";d2$
1600 return
1610 gosub2010:ifpl=1thenx=8:ifpl=1theny=1
1620 ifpl=2thenx=28:ifpl=2theny=21
1630 print"[155]";tab(x)"1.mrs lane"
1640 printtab(x)"2.stepson"
1650 printtab(y)"person:3.butler"
1660 printtab(x)"4.maid"
1670 printtab(x)"5.mistress"
1680 q=5:gosub2560:rem guess stepper
1690 gosub2010:rem blanks player scrn
1700 gp=gs
1710 print"";tab(x)"1.library"
1720 printtab(x)"2.living rm"
1730 printtab(x)"3.den"
1740 printtab(y)"room: 4.kitchen"
1750 printtab(x)"5.lounge"
1760 printtab(x)"6.study"
1770 q=6:gosub2560
1780 gosub2010
1790 gr=gs
1800 print"";tab(x)"1.hammer"
1810 printtab(x)"2.gun"
1820 printtab(y)"weapon:3.chain"
1830 printtab(x)"4.knife"
1840 printtab(x)"5.poison"
1850 q=5:gosub2560
1860 gosub2010
1870 gw=gs
1880 print"";tab(y)"person:";p$(gp)
1890 printtab(y)"room:";r$(gr)
1900 printtab(y)"weapon:";w$(gw)
1910 gosub2610:fort=1to2000:next
1920 ifpl=1thenco=7
1930 ifpl=2thenco=27
1940 cb=0
1950 ifp=gpthencb=cb+1
1960 ifr=grthencb=cb+1
1970 ifw=gwthencb=cb+1
1980 gosub2990:fort=1to1300:next:gosub3030
1990 gosub2260:return
2000 print"";tab(co)" "
2010 print""
2020 ifpl=2thenb=21
2030 ifpl=1thenb=1
2040 fori=1to6
2050 printtab(b)" "
2060 next
2070 return
2080 sp=15
2090 ifsp=23thensp=15
2100 print" "
2110 ifxv=1then2130
2120 print"[144]"
2130 print"";tab(sp)" ^ "
2140 printtab(23)"[145] "
2150 sp=sp+1
2160 ifpeek(197)=1thenprint"":goto1290
2170 ifpl=1thenjp=56320
2180 ifpl=2thenjp=56321
2190 ifjp=56320thenj0=111
2200 ifjp=56321thenj0=239
2210 ifpeek(jp)<>j0then2090
2220 ifsp=23then2170
2230 print"";tab(sp)"^ "
2240 sp=sp-15
2250 goto290
2260 ifpl=2then2290
2270 rj=int(rnd(0)*37)+1665
2280 goto2310
2290 rk=int(rnd(0)*37)+1704
2300 goto2320
2310 pokerj,209:poketq1,160:tq1=rj:goto2330
2320 pokerk,218:poketp2,160:tp2=rk:goto2330
2330 poke