home *** CD-ROM | disk | FTP | other *** search
- 10 if aa=1then90
- 20 poke53280,0:poke53281,0:print"[147][129]"tab(13)" video jigsaw "
- 30 gosub1230:aa=1:print"[147] loading "n$(a)
- 40 print" please wait....[144]"
- 50 ifleft$(n$(a),1)="d"thenzz=1
- 60 ifleft$(n$(a),1)="[129]"thenzz=2
- 70 poke49990,zz
- 80 load n$(a),8,1
- 90 poke55,0:poke56,92:clr:zz=peek(49990):dim n$(19)
- 100 fora=828to873:read d:pokea,d:next
- 110 fora=49879to49973:read d:pokea,d:next
- 120 print"[147]":poke781,8:poke782,5:poke783,0:sys65520
- 130 print"choose size of puzzle pieces:"
- 140 print"(smaller numbers give harder puzzles)"
- 150 poke781,14:poke782,2:poke783,0:sys65520
- 160 print"length (from 2 to 12[146])";:input l$
- 170 l=val(l$):ifl<2orl>12then150
- 180 poke781,18:poke782,2:poke783,0:sys65520
- 190 print "width (from 2 to 20[146])";:input w$
- 200 w=val(w$):ifw<2orw>20then180
- 210 print"[147] once puzzle appears you may see"
- 220 print" picture as it should look when"
- 230 print" finished by pressing f1"
- 240 print"[158] plug joystick into port 2"
- 250 print" puzzle construction will blank"
- 260 print" screen for 1 to 2 minutes"
- 270 print" press any key to start construction"
- 280 get k$:ifk$=""then print"[145]";:poke646,peek(56325):goto270
- 290 poke53265,peek(53265)and239
- 300 ifzz=1thengosub1530
- 310 ifzz=2thengosub1570:gosub1530:poke53281,peek(34576)
- 320 fora=32704to32767:read d:pokea,d:next
- 330 v=53248:sid=54272:xx =24+(w*4-4):yy=50+(l*4)-4
- 340 pokesid+5,9:pokesid+6,9
- 350 max=xx+(int(40/w)-1)*8*w:myx=yy+(int(25/l)-1)*8*l
- 360 dim s(1000):dimc(1000)
- 370 def fn hi(m)=int(m/256):def fn lo(m)=m-256*fn hi(m)
- 380 for n =0 to int (25/l)-1
- 390 for n1=0 to int (40/w)-1
- 400 b=b+1
- 410 s(b)=24576+n1*(w*8)+n*(l*320)
- 420 c(b)=55296+n1*(w)+n*(40*l)
- 430 a$=a$+chr$(b)
- 440 next n1:nextn
- 450 d$=a$:b$=a$
- 460 fori=1tob:a=i+int((b+1-i)*rnd(0))
- 470 d$=mid$(d$,a,1)+left$(d$,a-1)+right$(d$,b-a)
- 480 next
- 490 z=int(len(d$)/2)*2-2
- 500 fori=1to z step2:x1=asc(mid$(d$,i,1)):x2=asc(mid$(d$,i+1,1))
- 510 gosub1020:gosub760
- 520 poke53280,i:next:d$=b$:b$=a$
- 530 b=1
- 540 pokev+28,peek(v+28)or1:pokev+39,7:pokev+37,2:pokev+38,5:pokev,x
- 550 pokev+1,y:poke24568,255:pokev+21,1
- 560 poke53265,peek(53265)and239
- 570 poke53265,59:poke53272,120:poke56576,peek(56576)and254
- 580 ifzz=2thenpoke53270,216
- 590 poke53265,peek(53265)or16
- 600 pokesid+24,15
- 610 le=l*8:we=w*8
- 620 x=xx:y=yy
- 630 getk$:ifk$="[133]"thengosub1150
- 640 tg=1-tg:pokev+21,tg:j2=peek(56320)
- 650 fr=j2and16:jv=15-(j2and15)
- 660 if fr=0thengosub950:goto630
- 670 ifjv=1 and y>yy theny=y-le:b=b-int(40/w):goto710
- 680 ifjv=2 and y<myx theny=y+le:b=b+int(40/w):goto710
- 690 ifjv=4 and x>xx thenx=x-we:b=b-1:goto710
- 700 ifjv=8 and x<max thenx=x+we:b=b+1
- 710 tr=(x>255)
- 720 pokev+16,tr*(-1)
- 730 pokev,x+(tr*255):pokev+1,y
- 740 goto630
- 750 gosub1020:ifb$=d$then en=1
- 760 forn=0tol-1:for n1=0tow-1
- 770 y1=s(x1)+(n1*8)+(n*320):c1=c(x1)+n1+n*40:v1=c1-31744
- 780 y2=s(x2)+(n1*8)+(n*320):c2=c(x2)+n1+n*40:v2=c2-31744
- 790 yl=fn lo(y1):yh= fn hi(y1)
- 800 xl=fn lo(y2):xh= fn hi(y2)
- 810 poke165,yl:poke166,yh:poke167,xl:poke168,xh
- 820 sys 828
- 830 ifzz=2 then poke49160,peek(c1):pokec1,peek(c2):pokec2,peek(49160)
- 840 poke49161,peek(v1):pokev1,peek(v2):pokev2,peek(49161)
- 850 next:next
- 860 ifen=1then1060
- 870 return
- 880 poke53270,200:poke53265,27:poke53272,21:poke56576,peek(56576)or1:pokev+21,0
- 890 poke53280,0:poke53281,0:print"[147][129] load another picture puzzle and"
- 900 print" play again (y/n)[146] ";
- 910 geta$:ifa$=""then910
- 920 ifa$="n"then poke55,0:poke56,160:clr:stop
- 930 ifa$="y"thenprint:goto30
- 940 goto910
- 950 fl=fl+1
- 960 iffl=2thenx2=b:ifx2=x1then fl=1:return
- 970 if fl=2 then fl=0:gosub990:gosub750:return
- 980 x1=b:gosub1000:return
- 990 hf=110:lf=0:gosub1010:return
- 1000 hf=70:lf=0:gosub1010:return
- 1010 pokesid+1,hf:pokesid,lf:pokesid+4,17:pokesid+4,16:return
- 1020 ifx1>x2thenx3=x1:x1=x2:x2=x3
- 1030 x1$=mid$(b$,x1,1):x2$=mid$(b$,x2,1)
- 1040 b$=left$(b$,x1-1)+x2$+mid$(b$,x1+1,x2-x1-1)+x1$+right$(b$,len(b$)-x2)
- 1050 return
- 1060 for r=0to2
- 1070 pokesid+5,85:pokesid+6,85:pokesid+12,85:pokesid+13,85
- 1080 pokesid+4,33:pokesid+11,17
- 1090 forn=0to5:forx=0to3:v(x)=peek(850+(n*4)+x):next
- 1100 pokesid+1,v(0):pokesid,v(1):pokesid+8,v(2):pokesid+7,v(3):poke53280,v(2)
- 1110 ifh1=50then for t=1to200:next
- 1120 fort=1to125:next:next
- 1130 pokesid+4,32:pokesid+11,16:forw=1to500:next:next
- 1140 goto880
- 1150 ifzz=2thengosub1620
- 1160 poke53272,8:poke56576,(peek(56576)and252)or1
- 1170 pokev+21,0
- 1180 getk$:ifk$<>"[133]"then1180
- 1190 ifzz=2thengosub1620
- 1200 poke53272,120:poke56576,(peek(56576)and252)or2
- 1210 pokev+21,1
- 1220 return
- 1230 print" please insert disk containing doodle[146]":n=1
- 1240 print tab(8);"or koala[146] picture files"
- 1245 print"[155]-the gazette disk contains one picture-[129]
- 1250 [153]" press any key when ready"
- 1260 [161]k$:[139] k$[178]""[167]1260
- 1270 [153]"load"[163]12);" picture files "
- 1280 [159]1,8,0,"$"
- 1290 [161]#1,b$:[139]st[179][177]0[167]1400
- 1300 [139]n[177]19[167]1400
- 1310 [139]b$[179][177][199](34)[167]1290
- 1320 n$[178]""
- 1330 [161]#1,b$:[139]b$[179][177][199](34)[167] n$[178]n$[170]b$:[137]1330
- 1340 [161]#1,b$:[139]b$[178][199](32)[167]1340
- 1350 [139][200](n$,1)[178]" "[167] n[178]n[171]1:[137]1380
- 1360 [139][200](n$,2)[179][177]"dd"[175][200](n$,1)[179][177]"for" [167]n[178]n[171]1:[137]1380
- 1370 n$(n)[178]n$:[153][163]12)n$(n)
- 1380 [161]#1,b$:[139]b$[179][177]""[167]1380
- 1390 [139] st[178]0[167] n[178]n[170]1:[137]1290
- 1400 [160]1
- 1410 [139]n[178]1[167][153]" no pictures on this disk":[129]i[178]1[164]2000:[130]:[137]1230
- 1420 [153]" (use cursor up/down to highlight)
- 1430 print" press return to load picture
- 1440 a[178]1:c1[178]0:c[178]125:[141]1510
- 1450 k[178][194](197):sh[178][194](653):[139]k[179][177]7[175]k[179][177]1[167]1450
- 1460 [139]k[178]7[175]sh[178]0[175]a[179](n[171]1)[167]c1[178]1:[141]1500
- 1470 [139]k[178]7[175] sh[178]1[175]a[177]1[167]c1[178][171]1:[141]1500
- 1480 [139]k[178]1[167][142]
- 1490 [137]1450
- 1500 [129]i[178]0[164]24:[151]55296[170]i[170](a)[172]40[170]c,8:[130]
- 1510 a[178]a[170]c1:[129]i[178]0[164]24:[151]55296[170]i[170](a)[172]40[170]c,1:[130]
- 1520 [142]
- 1530 [151]49872,0:[151]49873,92:[151]49874,0:[151]49875,96:[151]49876,0
- 1540 [151]49877,128:[151]49878,0:[158]49879
- 1550 [151]49872,0:[151]49873,96:[151]49874,0:[151]49875,128:[151]49876,0
- 1560 [151]49877,160:[151]49878,0:[158]49879:[142]
- 1570 [151]49872,64:[151]49873,127:[151]49874,39:[151]49875,131:[151]49876,0
- 1580 [151]49877,92:[151]49878,0:[158]49879
- 1590 [151]49872,40:[151]49873,131:[151]49874,15:[151]49875,135:[151]49876,0
- 1600 [151]49877,216:[151]49878,0:[158]49879
- 1610 [151]49877,196:[151]49878,0:[158]49879:[142]
- 1620 [151]49872,0:[151]49873,216:[151]49874,0:[151]49875,220:[151]49876,0
- 1630 [151]49877,196:[151]49878,1:[158]49879:[142]
- 1640 [131] 160,0,177,165,153,0,192,177
- 1650 [131] 167,145,165,185,0,192,145,167
- 1660 [131] 200,192,8,208,237,96,25,30
- 1670 [131] 18,209,33,135,25,30,42,62
- 1680 [131] 31,165,50,60,37,162,42,62
- 1690 [131] 31,165,50,60,37,162
- 1700 [131] 173,210,194,205,208,194,173
- 1710 [131] 211,194,237,209,194,144,80,173
- 1720 [131] 208,194,133,251,173,209,194
- 1730 [131] 133,252,173,212,194,133,253
- 1740 [131] 173,213,194,133,254,173,210
- 1750 [131] 194,133,247,173,211,194,133
- 1760 [131] 248,173,214,194,133,249,160,0
- 1770 [131] 177,251,166,249,240,8,133,250
- 1780 [131] 177,253,145,251,165,250,145
- 1790 [131] 253,230,251,208,2,230,252,230
- 1800 [131] 253,208,2,230,254,165,252,197
- 1810 [131] 248,208,222,165,247,197,251,48
- 1820 [131] 3,76,10,195,96
- 1830 [131] 170,192,0,187,0,0,169,0
- 1840 [131] 0,183,64,0,193,144,0,0
- 1850 [131] 116,0,0,25,0,0,7,64
- 1860 [131] 0,1,144,0,0,116,0,0
- 1870 [131] 25,0,0,7,0,0,0,0
- 1880 [131] 0,0,0,0,0,0,0,0
- 1890 [131] 0,0,0,0,0,0,0,0
- 1900 [131] 0,0,0,0,0,0,0,197
-