home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 60
/
060.d81
/
capture
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
8KB
|
211 lines
10 print"[147]":gosub61000:goto130
20 ifl>1thenreturn
30 pokevi,13:pokew,32:sysn:ifti$>"000100"thenprint" 0":te=1:return
40 print""60-val(ti$)-40*(ti$=>"000100")"[157] ":te=0:return
50 s=54272:pokes+24,15:pokes,251:pokes+1,5:pokes+5,17:pokes+6,74
60 pokes+4,129:fore=1to175:next
70 pokes+4,128:return
80 rr=0
82 poke214,18:print:print"[213][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]"
83 print"[221] (p)lay again (l)oadstar [221]"
84 print"[202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203]"
85 geta$:ifa$="p"thenrun130
86 ifa$="l"then60000
90 fork=1to30:pokelc-120*(wi=2)+asc(mid$(f$,k,1)),m:rem ifpeek(197)=4thenrun
100 rem ifpeek(197)=3thenrr=1
110 next:ifrr=1thenifm=7thenrs=1:goto310
120 m=13-m:goto85
130 dimc(8,8):lc=55480:m=7
140 f$="rstuvwxyz[\]^[134][174][173][172][171][170][169][168][167][166][165][164][163][162][161]"+chr$(121)+"q"
150 e$="[157][213][195][195][195][195][195][195][195][195][195][195][195][195][201][157][157][157][157][157][157][157][157][157][157][157][157][157][157][194][157][202][195][195][195][195][195][195][195][195][195][195][195][195][203][145][157][194]":w=782:vi=781
160 n=65520:poke53264,0:poke53287,1:poke53288,0:v=53269
170 poke2040,254:poke2041,254
180 f$(1)="1[146][156]-player-2[157][157][157][157][157][157][157][157][157][157]":f$(2)="1[156]-player-2[146][157][157][157][157][157][157][157][157][157][157]"
190 j8=56321:a$="[157][157][157][157][157][157][157][157]":c$(1)="[156] timed ":c$(2)="[156] normal "
200 c$(3)="[156] turns ":c$(4)="[156]together"
210 a$(1)="cz":a$(2)="dmjggpse":a$(3)="efenpsf":a$(4)="ks":fork=1to4:h$=""
220 forj=1tolen(a$(k)):h$=h$+chr$(asc(mid$(a$(k),j,1))-1)
230 next:a$(k)=h$:next:j9=56320
240 g$(1)="[156]timed ":g$(2)="[156]normal ":g$(3)="[156]turns ":g$(4)=c$(4)
250 e$(1)="":d$(1)="[146]":g$="12345678":fork=1to8
260 b$(k)="[146][207][183][208][157][157][157][180]"+mid$(g$,k,1)+"[170][157][157][157][204][175][186]"
270 next:b$="[207][183][208][157][157][157][180] [170][157][157][157][204][175][186][145][145][146]"
280 c$="[158][195][195][195][195][195][195][195][195][195][195][195][195]":d$="[157][157][157][157][157][157][157][157][157][157][157][157][157][157]"
290 pokev,0:ifpeek(16370)=64then310
300 fork=1to704:reada:poke15679+k,a:next
310 x=int(rnd(1)*8)+1:y=int(rnd(1)*8)+1:c(x,y)=9
320 fork=1to8:forj=1to8:ifk=xthenifj=ythen400
330 t=int(rnd(1)*8)+1:ift>6thenc(k,j)=11:goto400
340 ift>4thengoto360
350 o=abs(x-k):p=abs(y-j):c(k,j)=p*(o<=p)+o*(o>p):goto400
360 ifk=xthenc(k,j)=-5*(j<y)-6*(j>y):goto400
370 ifj=ythenc(k,j)=-8*(k<x)-7*(k>x):goto400
380 ifk<xthenc(k,j)=-4*(j<y)-3*(j>y):goto400
390 c(k,j)=-(j<y)-2*(j>y)
400 nextj:nextk:pokev,0:poke53248,23:poke53249,52:poke53250,191
410 poke53251,220:ifw1thenw1=0:ti$=ty$:goto730
415 poke53281,14:poke53280,6:printchr$(9)chr$(142)""
420 print"[147]";:fork=1to8:forj=1to8:printb$;:next:ifrs=0then450
430 pokew,32:pokevi,13:sysn:print" ";:pokew,33:pokevi,7:sysn:print" "
440 pokew,33:pokevi,10:sysn:print" ":tq=0:s1=0:s2=0:rs=0:goto730
450 print"":next:print"[158][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183]"tab(24);
460 fork=1to24:print"[170][157]";:next
470 print""tab(25)"[158][213][195][195][195][195][195][178][195][195][195][195][195][195][201]"d$"[213][201][213][201][213][201][194][201][201][176][201][213][201] "d$"[194] [171][179][171][203][194][194][194][194][179][171] ";
480 printd$"[202][203][203][203][203] [194][202][203][203][202][202][203] "d$"[213][195][195][195][195][195][203][157][157][157][157][157][157][157][173]"c$"[195]"d$"[213]"c$"[201]"d$"[194]scor";
490 print"e: [158][194]"d$"[202]"c$"[203]"d$"[213]"c$"[201]"d$"[194]score: [158][194]"d$"[202]"c$"[203]";
500 printd$"[213]"c$"[201]"d$"[194]time: [158][194]"d$"[202]"c$"[203]"d$"[213]"c$"[201]"d$"[194] [156]1-pla";
510 print"yer-2 [158][194]"d$"[171]"c$"[179]"d$"[194] "g$(1)" [158][194]"d$"[194] "g$(2)" [158][194]"d$;
520 print"[194] "g$(3)" [158][194]"d$"[194] "g$(4)" [158][194]"d$"[202]"c$;
530 print"[203]"d$" "d$"[145][145][145][145][145][145][145][145]";
540 pl=1
550 printf$(pl);:jy=peek(j8):if(jyand16)=0then590
560 if(jyand8)=0thenpl=2
570 if(jyand4)=0thenpl=1
580 goto550
590 if(peek(j8)and16)=0then590
600 print"";:ifpl=1thenlo=1:u=2:ll=0:r=3:l=1
610 ifpl=2thenlo=3:u=4:ll=2:r=5:l=3
620 l=-lo*(l=r)-u*(l=ll)-l*(l<randl>ll)
630 q=0:forz=1to4:q=-(z=l):printe$(q)g$(z)d$(q)a$;:next:print"[145][145][145][145]";
640 ifl=0thenprint"[157][145][145]";:goto540
650 ifpeek(197)=4thenl=0:goto630
660 jy=peek(j8):if(jyand16)=0then700
670 if(jyand1)=0thenl=l-1
680 if(jyand2)=0thenl=l+1
690 goto620
700 print"[157][157][157][145][145][145][158][213]"c$"[201]"d$"[194] [156]players:"pl"[158][194]"d$"[171]"c$"[179]"d$"[194] "c$(l)" ";
710 print"[158][194]"d$"[171]"c$"[179]"d$"[194] [156]"a$(1)" [158][194]"d$"[194] [156]"a$(2)" [158][194]"d$"[194]";
720 print" [156]"a$(3)" "a$(4)" [158][194]"d$"[202]"c$"[203]";
730 if(peek(j8)and16)=0then730
740 j=1:k=1:k1=8:j1=8:pokev,0:poke53248,23:poke53249,52
750 poke53250,191:poke53251,220:pokev,1
760 ifl=3thenh=1
770 u1=1:u2=0:ifpl=2thenpokev,3
780 iftq=0thenti$="000000":tq=1
790 ifpeek(197)=4thenpokev,0:run
800 ifpeek(197)=3thenpokev,0:rs=1:goto310
810 gosub20:iftethen80
820 a=peek(j8):b=peek(j9):ifl=3andu1=1then880
830 if(aand16)=0theniff=0then880
840 if(aand16)=16thenf=0
850 h=1
860 poke2040,254:pokev,peek(v)or1:pokevi,(k-1)*3
870 pokew,(j-1)*3:sysn:printb$;:iffthen980
880 ifpl=1oru2=1then940
890 if(band16)=0thenifg=0then940
900 if(band16)=16theng=0
910 i=1
920 poke2041,254:pokev,peek(v)or2:pokevi,(k1-1)*3
930 pokew,(j1-1)*3:sysn:printb$;
940 gosub20:iftethen80
950 if(aand16)+(band16)=0then1100
960 if(aand16)=0or(u1=0andl=3)then990
970 kk=k:jj=j
980 k=k-((aand2)=0)+((aand1)=0):j=j-((aand8)=0)+((aand4)=0)
990 if(band16)=0orpl=1or(u2=0andl=3)then1020
1000 d=k1:k1=k1-((band2)=0)+((band1)=0):c=j1:j1=j1-((band8)=0)+((band4)=0)
1010 j1=j1+8*(j1=9)-8*(j1=0):k1=k1+8*(k1=9)-8*(k1=0)
1020 k=k+8*(k=9)-8*(k=0):j=j+8*(j=9)-8*(j=0):ifd=k1andc=j1then1060
1030 d=k1:c=j1:pokev,peek(v)andnot2
1040 poke53250,23+(j1-1)*24:poke53251,52+(k1-1)*24
1050 ifpl<>1thenpokev,peek(v)or2
1060 ifkk=kandj=jjthen1090
1070 kk=k:jj=j:pokev,peek(v)andnot1:poke53248,23+(j-1)*24
1080 poke53249,52+(k-1)*24:pokev,peek(v)or1
1090 gosub20:iftethen80
1100 if(aand16)+(band16)=32then790
1110 l1=0:p1=c(k,j):if(aand16)=0andf=0thenl1=1
1120 ifpl=1then1140
1130 l2=0:p2=c(k1,j1):if(band16)=0thenifg=0thenl2=1
1140 ifl1then1270
1150 ifl2=0orpl=1then790
1160 ifl=3thenifu2=0then790
1170 u2=0:u1=1:ifi=0then1190
1180 i=0:s2=s2+1:pokevi,10:pokew,33:sysn:print"[144]"s2
1190 gosub20:iftethen80
1200 ifp2>0then1230
1210 pokevi,(k1-1)*3:pokew,(j1-1)*3:sysn
1220 printb$(abs(p2));:pokev,peek(v)andnot2:goto790
1230 poke2041,244+p2:ifp2<9then790
1240 ifp2=11then1260
1250 wi=2:goto80
1260 gosub50:k1=8:j1=8:g=1:goto920
1270 ifl=3thenifu1=0then1150
1280 u1=0:u2=1:ifh=0then1310
1290 h=0:ifl=1then1310
1300 s1=s1+1:pokevi,7:pokew,33:sysn:print""s1:ifw1thenreturn
1310 gosub20:iftethen80
1320 ifp1>0then1350
1330 pokevi,(k-1)*3:pokew,(j-1)*3:sysn:printb$(abs(p1));
1340 pokev,peek(v)andnot1:goto1150
1350 poke2040,244+p1:ifp1<9then1150
1360 ifp1=11then1390
1370 w1=0:ifl=1thenty$=ti$:w1=1:gosub1300:goto310
1380 goto80
1390 gosub50:k=1:j=1:f=1:goto860
1400 data 0,0,0,0,0,0,0,31,252,0,7,252,0,1,252,0,0
1410 data 252,0,1,188,0,3,28,0,6,12,0,12,4,0,24,0,0
1420 data 48,0,0,96,0,0,192,0,1,128,0,3,0,0,6,0,0
1430 data 12,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0
1440 data 0,0,63,248,0,63,224,0,63,128,0,63,0,0,61,128,0
1450 data 56,192,0,48,96,0,32,48,0,0,24,0,0,12,0,0,6
1460 data 0,0,3,0,0,1,128,0,0,192,0,0,96,0,0,48,0
1470 data 0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1480 data 24,0,0,48,0,0,96,0,0,192,0,1,128,0,3,0,0
1490 data 6,0,0,12,0,0,24,0,32,48,0,48,96,0,56,192,0
1500 data 61,128,0,63,0,0,63,128,0,63,224,0,63,248,0,0,0
1