home *** CD-ROM | disk | FTP | other *** search
- 10 rem **** hbh5 ****
- 15 v=53248:poke53281,0:poke53280,0
- 20 rem...sprite pointers:
- 25 p0=2040:p1=2041:p2=2042:p3=2043:p4=2044:p5=2045:p6=2046:p7=2047
- 30 fori=1topeek(709):nm$=nm$+chr$(peek(709+i)):next
- 80 gosub4324:rem read data
- 100 pokep0,230:pokep1,222:pokep2,244:pokep3,245
- 105 pokev,200:pokev+2,220:pokev+4,245:pokev+6,245
- 110 pokev+1,195:pokev+3,195:pokev+5,174:pokev+7,195
- 115 pokev+40,1:pokev+41,7:pokev+42,14:pokev+28,14:pokev+37,10:pokev+38,1
- 120 sys51721,1,4:pokev+21,15
- 130 gosub5010:print"[159](huggy bear) does anyone live here?":gosub5110
- 135 gosub5010:print"[159](girl) i don't think so. some people
- 140 [153]" say it's haunted.":[141]5110:[129]t[178]1[164]3000:[130]:[141]5010
- 145 [151]p4,215:[151]p5,216
- 150 [151]v[170]21,63:[151]v[170]23,48:[151]v[170]10,245:[151]v[170]43,1:[151]v[170]44,1
- 155 [129]y[178]0[164]150:[151]v[170]11,y:[129]t[178]1[164]20:[130]:[130]
- 160 [151]p0,235:[151]p1,224:[151]p2,240:[151]p3,243:[129]t[178]1[164]1000:[130]
- 165 [151]v[170]23,16:[129]t[178]1[164]2000:[130]:[151]v[170]21,31
- 170 [141]5010:[153]"open(boy) did you see that?":[141]5110
- 180 [141]5010:[153]"open(huggy bear) it was a ghost!":[141]5110
- 185 [151]v[170]8,100:[151]v[170]9,0:[129]y[178]0[164]150:[151]v[170]9,y:[129]t[178]1[164]20:[130]:[130]
- 190 [129]t[178]1[164]1000:[130]:[151]v[170]23,0:[129]t[178]1[164]2000:[130]:[151]v[170]21,15
- 200 [141]5010:[153]"open(girl) and there's another one!"
- 205 [141]4334:[129]t[178]1[164]3000:[130]:[141]5010
- 210 [151]p6,212:[143] witch flying right
- 215 [151]v[170]45,1:[151]v[170]12,0:[151]v[170]13,60:[151]v[170]29,64:[151]v[170]23,64:[151]v[170]21,79
- 220 x[178]0:y[178]60:i[178]0
- 225 [129]x[178]0[164]250:[151]v[170]12,x:i[178]i[170]1
- 230 [139]i[178]5[167]y[178]y[170]1:[151]v[170]13,y:i[178]0
- 235 [130]
- 240 [151]p6,214:[143] witch flying left
- 245 [129]x[178]250[164]50[169][171]1:[151]v[170]12,x:i[178]i[170]1
- 250 [139]i[178]5[167]y[178]y[170]1:[151]v[170]13,y:i[178]0
- 255 [130]
- 260 [151]p6,212:[143] witch flying right
- 280 [129]x[178]50[164]160:[151]v[170]12,x:i[178]i[170]1
- 285 [139]i[178]10[167]y[178]y[170]1:[151]v[170]13,y:i[178]0
- 290 [130]
- 295 [151]p6,213:[151]p2,244:[151]p3,245
- 300 [141]5010:[153]"open(witch) won't you children come into
- 305 print"my house and have some treats?":gosub5110
- 310 gosub5010:print"[159](huggy bear) what kind of treats?":gosub5110
- 315 gosub5010:print"[159](witch) i have some good blackbird pie,
- 320 [153]" and some bat wing stew.":[141]5110
- 330 [141]5010:[153]"open(boy) ugh! they sound terrible!":[141]5110
- 335 [141]5010:[153]"open(girl) no thanks. we have to hurry
- 340 print" to get home by 9 o'clock.":gosub5110
- 345 gosub5010:print"[159](witch) well, i have to go in now and
- 350 [153]" see what those ghosts are doing.":[129]t[178]1[164]2000:[130]
- 355 [129]i[178]13632[164]13695:[151]i,0:[129]t[178]1[164]50:[130]:[130]
- 360 [141]5010:[153]"open(girl) let's head for home guys, it's
- 365 print" almost 9 o'clock.":gosub5110
- 375 gosub5010:pokep0,230:pokep1,222:pokev+21,15:fort=1to1000:next
- 400 ifpeek(710)<1orpeek(710)>26orpeek(711)<1orpeek(711)>26then420
- 405 pokep0,254:gosub5010:print"[159](huggy bear) are you still with us,"
- 410 print"";nm$"?":gosub5110:pokep0,230
- 420 x0=200:x2=220:x4=245:x6=245
- 425 x0=x0-4:x2=x2-4:x4=x4-4:x6=x6-4
- 430 pokep0,232:pokep1,223:pokep3,239
- 435 pokev,x0:pokev+2,x2:pokev+4,x4:pokev+6,x6
- 440 fort=1to100:next
- 445 pokep0,230:pokep1,222:pokep3,245
- 450 ifx0=0thenpokev+21,14:x0=x0+4
- 455 ifx2=0thenpokev21,12:x2=x2+4
- 460 ifx4=<4thenpokev+21,0:goto480
- 465 fort=1to100:next
- 470 goto425
- 480 gosub5050
- 500 print"[147][158]on the way home they were complaining
- 505 [153]"because they hadn't gotten any treats
- 510 print"tonight. they decided to stop at one
- 515 [153]"more house, the one across the street
- 520 print"from where they live.
- 525 [158]51718,1,"outside":[158]51718,2,"last house"
- 530 [151]v,200:[151]v[170]2,226:[151]v[170]4,250:[151]v[170]6,250
- 535 [151]v[170]1,160:[151]v[170]3,160:[151]v[170]5,139:[151]v[170]7,160
- 540 [143]....outside scene
- 545 [151]p4,228:[151]v[170]43,7:[151]v[170]8,190:[151]v[170]9,50:[143] moon
- 550 [153]"load":[158]51721,1,1:[151]v[170]21,31
- 560 x0[178]210:x2[178]230:x4[178]250:x6[178]250
- 565 x0[178]x0[171]4:x2[178]x2[171]4:x4[178]x4[171]4:x6[178]x6[171]4
- 570 [151]p0,232:[151]p1,223:[151]p3,239
- 575 [151]v,x0:[151]v[170]2,x2:[151]v[170]4,x4:[151]v[170]6,x6
- 580 [129]t[178]1[164]100:[130]
- 585 [151]p0,230:[151]p1,222:[151]p3,245
- 590 [139]x0[178][179]50[167]620
- 605 [129]t[178]1[164]100:[130]
- 610 [137]565
- 620 [151]p0,235:[151]p1,224:[151]p2,240:[151]p3,243
- 630 y[178]160:yt[178]139
- 635 y[178]y[171]2:yt[178]yt[171]2
- 640 [151]p0,236:[151]p1,220:[151]p3,241:[129]t[178]1[164]120:[130]
- 645 [151]v[170]1,y:[151]v[170]3,y:[151]v[170]7,y:[151]v[170]5,yt
- 650 [151]p0,237:[151]p1,221:[151]p3,242:[129]t[178]1[164]120:[130]
- 655 [139]y[179]130[167]670
- 660 [137]635
- 670 [151]v[170]21,0:[153]"load"
- 675 [151]p0,233:[151]p1,226:[151]p2,246:[151]p3,247
- 680 [151]v[170]1,158:[151]v[170]3,153:[151]v[170]5,127:[151]v[170]7,148
- 685 [151]v,167:[151]v[170]2,180:[151]v[170]4,175:[151]v[170]6,175
- 700 [143]....last house scene
- 710 [158]51721,1,2:[151]v[170]21,15
- 715 [141]5010:[153]"open(all 3) trick or treat!":[141]4402:[129]t[178]1[164]3000:[130]
- 720 [141]5010:[153]"open(lady in house) you must be the kids
- 725 print" from across the street!":gosub5110
- 730 gosub5010:print"[159](girl) yes ma'am, we are.":gosub5110
- 735 gosub5010:print"[159](lady) well i'm sure glad you came by.":gosub5110
- 740 print"we have a lot of treats left.":gosub5110
- 745 gosub5010:print"[159](lady) not many kids came by, so we
- 750 [153]" want you to take it all!":[129]t[178]1[164]2500:[130]
- 755 [143]...bag of treats:
- 760 [151]p4,211:[151]v[170]43,10:[151]v[170]8,195:[151]v[170]9,137:[151]v[170]21,31
- 765 [129]t[178]1[164]2500:[130]
- 770 [141]5010:[153]"open(girl) why thank you very much! we
- 775 print" didn't get any treats anywhere else.":gosub5110
- 780 gosub5010:print"[159](huggy bear) gee, thank you so much.
- 785 [153]"open(boy) yeah, thanks lots!":[141]5110
- 790 [151]v[170]21,0:[141]5050
- 800 [153]"syswell, thats about the end of our story
- 805 print"folks. the kids had some bad luck at
- 810 [153]"trick or treating, but the goodies the
- 815 print"neighbors gave them more than made up
- 820 [153]"for that. they did have some unusual
- 825 print"experiences though. kinda makes one
- 830 [153]"wonder about all those tales of witches
- 835 print"and ghosts and haunted houses. anyway,
- 840 [153]"huggy bear and his friends are happy.
- 850 print"i hope you enjoyed sharing this story
- 855 [153]"with them.
- 860 forz9=1to4000:next:gosub5110:gosub5050
- 865 pokev+1,148:pokev+3,153:pokev+5,139:pokev+7,158
- 870 pokev,70:pokev+2,50:pokev+4,30:pokev+6,30:pokev+21,15
- 880 print"[153]"tab(12)"[213][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]"
- 885 printtab(12)"[194] [194]"
- 890 printtab(12)"[194] goodnight everyone [194]"
- 895 printtab(10)"[213][192][179] [194]"
- 900 printtab(12)"[194] hope to see you soon [194]"
- 905 printtab(12)"[194] [194]"
- 910 printtab(12)"[202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203]"
- 912 print""
- 915 ifpeek(709)=0then930
- 920 printtab(15)"thanks for joining"
- 925 print""tab(17)"us, ";nm$"."
- 930 print" [159]do you want to see huggy bear's"
- 940 print" halloween again? (y[159]/n[159])"
- 950 geta$:ifa$<>"y"anda$<>"n"then950
- 955 poke53269,0
- 960 f$="hello connect":ifa$="y"thenf$="hb halloween"
- 965 poke1,231:poke0,47
- 970 print"[147][144]loadf$,8"
- 980 print"run"
- 990 poke631,13:poke632,13:poke198,2:end
- 4322 rem....clear text window...
- 4324 fori=680to700:reada:pokei,a:next:return
- 4326 data162,0,169,32,141,112,7,238,173,2,232,224,120,208,245
- 4328 data169,72,141,173,2,96
- 4330 :
- 4332 rem....sprite data p,212
- 4334 fori=0to191:reada:poke13568+i,a:next
- 4336 rem...witch flying right
- 4338 data0,16,0,0,56,0,0,124
- 4340 data0,0,254,0,7,255,192,1
- 4342 data254,0,1,250,0,1,254,16
- 4344 data0,252,32,0,121,192,0,127
- 4346 data128,0,125,0,0,126,0,0
- 4348 data254,0,1,254,0,0,20,0
- 4350 data0,60,0,1,224,0,7,224
- 4352 data0,7,192,0,1,192,0,0
- 4354 rem...witch standing p,213
- 4356 data0,16,0,0,56,0,0,124
- 4358 data0,0,254,0,7,255,192,1
- 4360 data255,0,1,147,0,1,255,0
- 4362 data0,238,0,0,124,0,1,255
- 4364 data0,3,125,128,6,124,192,6
- 4366 data254,192,4,254,64,1,255,0
- 4368 data1,255,0,3,255,128,3,255
- 4370 data128,0,68,0,1,199,0,0
- 4372 rem...witch flying left
- 4374 data0,8,0,0,28,0,0,62
- 4376 data0,0,127,0,3,255,224,0
- 4378 data127,128,0,95,128,8,127,128
- 4380 data4,63,0,3,158,0,1,254
- 4382 data0,0,190,0,0,126,0,0
- 4384 data127,0,0,127,128,0,40,0
- 4386 data0,60,0,0,7,128,0,7
- 4388 data224,0,3,224,0,3,128,0
- 4390 return
- 4400 :
- 4402 rem *** paper bag p,211
- 4404 fori=0to63:reada:poke13504+i,a:next
- 4406 data255,252,0,191,124,0,183,124
- 4408 data0,183,124,0,183,220,0,183
- 4410 data220,0,191,220,0,255,220,0
- 4412 data253,220,0,221,220,0,221,220
- 4414 data0,221,252,0,253,252,0,127
- 4416 data248,0,63,240,0,0,0,0
- 4418 data0,0,0,0,0,0,0,0
- 4420 data0,0,0,0,0,0,0,240
- 4422 return
- 5000 :
- 5005 rem **** basic subroutines ****
- 5010 rem...text window clear & pos.
- 5015 sys680:print"":poke214,19:print:return
- 5050 :
- 5055 rem *** wipe screen vertically ***
- 5060 c1=23:c2=19:c3=24:c4=39:c5=59903
- 5065 forj=0toc1:c2$=c2$+chr$(32)+chr$(157)+chr$(17):next:c2$=c2$+chr$(145)
- 5070 forj=0toc2:ifj=0thenpoke781,c3:sysc5
- 5075 print"";tab(j);c2$:print""tab(c4-j);c2$
- 5080 next:print"[147]";:c2$=""
- 5090 return
- 5100 :
- 5105 rem *** 5 sec time delay ***
- 5110 poke198,0:z9=0
- 5112 z9=z9+1:geta$:ifa$=""andz9<200then5112
- 5114 return
-