home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 101
/
101.d81
/
pw
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
92 lines
10 poke52,52:poke56,52:clr:poke53281,0:poke53280,0
12 dv=peek(186):ifdv<8thendv=8
14 dimw$(220)
16 unpack=13824:hg=13827:sr=52480:sq=52486:g=49153
18 sys57812"ddpw title",dv,0:poke780,0:poke781,0:poke782,92:sys65493
20 poke53265,59:poke53272,120:poke56576,peek(56576)and254
22 sys57812"3400-3747",dv,0:poke780,0:poke781,0:poke782,52:sys65493
24 sys57812"pw font",dv,0:poke780,0:poke781,0:poke782,56:sys65493
26 sys57812"c000-cf5f",dv,0:poke780,0:poke781,0:poke782,192:sys65493
30 sys13312,"pw text",dv
32 h=peek(252)*256+peek(251)
34 w$(0)=right$(w$(0),len(w$(0))-2)
36 pw$="[129][208][197][212][197][210] [193][206][196] [212][200][197] [215][207][204][198]"
60 poke53265,27:poke53272,21:poke56576,peek(56576)or1
65 syssr,96,76,56
100 s$(1)="pw1.shp":m$(1)="pw1.mus"
102 s$(2)="pw2.shp":m$(2)="pw2.mus"
104 s$(3)="pw3.shp":m$(3)="pw3.mus"
106 s$(4)="pw4.shp":m$(4)="pw4.mus"
120 goto700
200 n=0:s=1:fl=0:p=0
205 gosub330
210 ifw$(n)="*"thenn=n+1:gosub300:ifflthen700
220 ifw$(n)="+"thenn=n+1:gosub400:goto210
230 syssq,20-int((len(w$(n))/2)),24,"[158]"+w$(n)
240 p=peek(g):fort=1to300
242 geta$:ifa$="q"thent=300:next:goto700
244 ifpeek(g)>pthent=300
246 next
250 syssq,1,24," "
260 n=n+1
270 goto210
300 ifpeek(49152)=7then300
310 gosub450:s=s+1:ifs>4thenfl=1:return
320 gosub500:syshg
330 sys57812s$(s),dv,0:poke780,0:poke781,0:poke782,64:sys65493
340 sys57812m$(s),dv,0:poke780,0:poke781,0:poke782,128:sys65493
350 poke251,64:poke252,96:poke253,76:sysun
360 poke252,96:poke253,76:syshg:gosub430
370 return
400 p=peek(g)
405 geta$:ifa$="q"thenfl=1:return
410 if(peek(g)=p)and(peek(49152)>0)then405
420 return
430 sys49615:poke781,0:poke782,128:sys49664:poke49152,7:mu=1:return
450 poke49152,0:poke54276,0:poke54283,0:poke54290,0:sys49897:sys49935:mu=0:return
500 onsgoto502,510,530,550,600
502 print"[147][154] "pw$"[159] - [193]ct [201]"
504 print"[155] [212]he story of a boy, a bird, a cat
506 [153]" and a not-so-smart duck."
508 [142]
510 [153]"loadcont "pw$"open - atnct right$right$
520 print" [193]dd a [199]randfather and a wolf to the
522 [153]" the story and look out!"
524 [142]
530 [153]"loadcont "pw$"open - atnct right$right$right$
540 print" [200]ow to catch a wolf with only a bird
542 [153]" and a rope."
544 [142]
550 [153]"loadcont "pw$"open - atnct right$(NULL)
560 print" [212]he triumph of a boy and a bird...
562 [153]" and even a duck!"
564 [142]
700 [139][194](53270)[179][177]200[167][158]hg
705 [139]mu[167][141]450
710 [153]"loadcont "pw$
720 [153]" 1cont (NULL)ee, hear and read the story
730 print" 2[154] [202]ust see the four pictures
740 [153]" 3cont (NULL)uit to (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)
742 print" [208]ress the [209][154] key while a picture is
744 [153]" showing to return to this menu.
750 poke198,0
760 geta$:ifa$<"1"ora$>"3"then760
770 onval(a$)goto200,800,40000
800 fori=1to4
802 print"[147][154] [208]ress any key to go to the next
804 [153]" picture. (NULL)ress (NULL)cont while picture is
806 print" showing to return to the menu.
830 [158]57812s$(i),dv,0:[151]780,0:[151]781,0:[151]782,64:[158]65493
840 [151]251,64:[151]252,96:[151]253,76:[158]un
850 [151]252,96:[151]253,76:[158]hg
860 [161]a$:[139]a$[178]""[167]860
865 [158]hg
870 [139]a$[178]"q"[167]i[178]4:[130]:[137]700
880 [130]:[137]800
10000 [159]15,8,15,"s0:pw":[160]15:[148]"pw",8:[128]
40000 a$[178]"hello connect":[129]i[178]8[164]9:[160]2:[159]2,i,2:[160]2:[139]st[167]40030
40010 [160]15:[159]15,i,15,"r0:"[170]a$[170]"="[170]a$:[132]15,er:[160]15:[139]er[178]63[167]40030
40020 [130]:[153]"load":[151]2048,0:[151]44,8:[151]53272,23:[128]
40030 [151]646,[194](53281):[153]"loadload"[199](34)a$[199](34)","i
40040 [153]"run":[151]631,13:[151]632,13:[151]198,2:[128]