home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 65 / 065.d81 / halloween (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  5KB  |  190 lines

  1. 100 poke53280,.:poke53281,.
  2. 130 :
  3. 140 poke55,120:poke56,55:clr:a$=""
  4. 150 ifpeek(51458)=201then200
  5. 160 sys57812"unpacker.89",8,0:poke780,.:poke781,.:poke782,201:sys65493
  6. 170 sys57812"package.o",8,0:poke780,.:poke781,80:poke782,195:sys65493
  7. 190 :
  8. 200 ip=50000:unpack=51456:hgr=51459
  9. 210 ps=50006:ba=50009
  10. 220 :
  11. 230 read np : dim r$(np),c(np),c$(7)
  12. 240 forx=1tonp:readr$(x),c(x)
  13. 250 next:c$(1)="":c$(2)="[153]":c$(3)="":c$(4)="[159]":c$(5)="[154]"
  14. 260 gosub60000
  15. 270 forx=1tonp
  16. 280 gosub1810
  17. 285 fh=0:ifleft$(r$(x),2)="u."thenfh=1
  18. 290 sys57812r$(x),8,0:poke780,.:poke781,.:poke782,64:sys65493
  19. 300 :
  20. 310 gosub1910:ifa$="q"ora$="[209]"thengosub1250
  21. 312 gosub2000
  22. 340 kk=. : poke 198,.
  23. 355 ifz3=0then360
  24. 357 z4=z4+1:z4=z4and15
  25. 358 poke53281,z4
  26. 360 kk=kk+1:geta$:ifa$=""andkk<800then355
  27. 370 ifa$="q"ora$="[209]"thengosub 1250
  28. 380 ifa$="s"ora$="[211]"then 470
  29. 390 ifa$<>chr$(133)then410
  30. 400 z1=z1+1:z1=z1and15
  31. 405 poke53280,z1:goto340
  32. 410 ifa$<>chr$(134)then416
  33. 412 z2=z2+1:z2=z2and15
  34. 415 poke53281,z2:goto340
  35. 416 ifa$<>chr$(135)then420
  36. 417 z3=z3+1:z3=z3and1:goto340
  37. 420 syshgr:print"[147]":poke198,.:next x
  38. 430 goto270
  39. 440 :
  40. 450 rem save koala pic
  41. 460 :
  42. 470 sys hgr
  43. 480 poke53280,.:poke53281,.
  44. 490 print"[147][154]":poke214,11:print
  45. 500 print"   [211]ave this unpacked picture? (y[154]/n[154])"
  46. 510 geta$:ifa$=""then510
  47. 520 ifa$="[217]"ora$="y"then 560
  48. 530 ifa$="[206]"ora$="n"then 330
  49. 540 goto 510
  50. 550 :
  51. 560 print"[147][154]":poke214,9:print
  52. 570 print"  [197]nter file name you wish to save as."
  53. 580 :
  54. 590 print"       [206]ame : ---------------[145][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][193][146]";
  55. 600 ln%=14:sp$="                "
  56. 610 gosub680:ifnm$=""then490
  57. 620 nm$=left$(chr$(129)+nm$+sp$,15)
  58. 630 print"[154]         [201]s this correct? (y[154]/n[154])"
  59. 640 geta$:ifa$=""then640
  60. 650 ifa$="y"ora$="[217]"then 790
  61. 660 ifa$="n"ora$="[206]"then 490
  62. 670 goto640
  63. 680 rem --- input routine ---
  64. 690 nm$="":x%=0:c%=peek(646)
  65. 700 print"[152][164][157]";:poke646,c%
  66. 710 geta$:ifa$=""then710
  67. 720 a%=asc(a$)
  68. 730 ifa%=20andx%>0thenx%=x%-1:nm$=left$(nm$,len(nm$)-1):print" [157][157]";:goto700
  69. 740 ifa%=20then710
  70. 750 ifa%=13 then print" ":return
  71. 760 ifx%=ln% then forer=1to2:poke53280,abs(255-peek(53280)):next:goto710
  72. 770 ifa$<" "ora$>"z"anda$<"[193]"ora$>"[218]"ora=34 then 710
  73. 780 nm$=nm$+a$:print""a$;:x%=x%+1:goto700
  74. 790 :
  75. 800 rem -- check for 'file exists' --
  76. 810 :
  77. 820 open15,8,15,"r0:"+nm$+"="+nm$:input#15,er,er$:close15
  78. 830 if er<>62 then gosub1160:goto490
  79. 840 :
  80. 850 rem ---      save pic       ---
  81. 860 :
  82. 920 gosub2000 : nm$=nm$+",p,w"
  83. 930 sys ps,nm$ : sys hgr
  84. 950 :
  85. 960 rem --- check for errors ---
  86. 970 :
  87. 980 open15,8,15:input#15,er,er$,y$,z$:close15
  88. 990 ifer>. then gosub1160:goto 490
  89. 1000 :
  90. 1010 rem --    everything ok    ---
  91. 1020 :
  92. 1030 poke53280,.:poke53281,.
  93. 1040 print"[147][154]":poke214,7:print
  94. 1050 print"             [211]aving complete."
  95. 1060 print"   [208]ut the [204][207][193][196][211][212][193][210] disk back in"
  96. 1070 print"     the drive and press [211][208][193][195][197][154]."
  97. 1080 geta$:ifa$<>" "then1080
  98. 1090 open15,8,15,"r0:package.o=package.o":input#15,er:close15
  99. 1100 ifer<>63 then 1040
  100. 1110 sys hgr:goto 420
  101. 1120 :
  102. 1130 :
  103. 1140 :
  104. 1150 rem ---   print dos error msg ---
  105. 1160 :
  106. 1170 poke53280,.:poke53281,.:print"[147]        [129] [196] [201] [211] [203]   [197] [210] [210] [207] [210] !
  107. 1180 [151]214,10:[153]
  108. 1190 a$[178]"print#valrror #"[170][196](er)[170]"print#,"[170]er$
  109. 1200 x%[178]22[171][195](a$)[173]2:[153][163]x%);a$
  110. 1210 [151]214,21:[153]
  111. 1220 [153]"print#        (NULL)ress (NULL)(NULL)atnlenvalprint# to continue."
  112. 1230 [161]a$:[139]a$[179][177]" "[167]1230
  113. 1240 [142]
  114. 1250 o[178][194](53270)[175]16
  115. 1255 [139]o[167][158]51459
  116. 1260 [151]53281,0:[151]53280,0
  117. 1270 [153]"loadcont  atnre you sure you want to quit? (ycont/ncont)"
  118. 1280 [151]198,0:[146]198,1:[161]ag$
  119. 1290 [139]ag$[178]"y"[176]ag$[178]"(NULL)"[167]1330
  120. 1295 [139]o[167][158]51459
  121. 1300 [142]
  122. 1320 [143] quit
  123. 1330 [159]15,8,15,"r0:hello connect=hello connect":[132]15,er:[160]15
  124. 1340 [139]er[179][177]63[167][153]"load":[128]
  125. 1350 [153]"loadstopload"[199](34)"hello connect"[199](34)",8"
  126. 1360 [153]"run"
  127. 1370 [151]631,13:[151]632,13:[151]198,2:[128]
  128. 1380 [143] data <title>,<border color>
  129. 1390 [131] 9
  130. 1400 [131] u.demon,0
  131. 1410 [131] warlock,0
  132. 1420 [131] pixie,0
  133. 1430 [131] wizard,0
  134. 1440 [131] treant,0
  135. 1450 [131] witches,0
  136. 1460 [131] u.wyvern,0
  137. 1470 [131] u.ghost,0
  138. 1480 [131] u.temple,0
  139. 1500 :
  140. 1770 [153]"";
  141. 1800 :
  142. 1810 [151]53281,6:[151]53280,6
  143. 1820 [153]"loadprint#ortantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan^";
  144. 1830 [129]qx[178]1[164]12
  145. 1840 [153]"(NULL)(NULL)";:[130]
  146. 1850 [153]"/tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexp"
  147. 1860 [129]lx[178]217[164]217[170]26:[151]lx,([194](lx)[176]128):[130]
  148. 1870 nm$[178]"p."[170]r$(x)
  149. 1880 [159]2,8,2,nm$:[153]"";
  150. 1890 [129]i[178]0[164]1:[158]ip,2,40:[153]""a$
  151. 1900 i[178]st:[130]:[160]2:[142]
  152. 1910 kk[178]0
  153. 1915 [151]214,14:[153]:[153]"list     (NULL)hile the slide is showing..."
  154. 1916 [153]"      asc1 list- changes border color"
  155. 1917 [153]"      asc3 list- changes background color"
  156. 1918 [153]"      asc5 list- toggles light show"
  157. 1919 [153]"       (NULL) list- takes you to (NULL)atn(NULL)val routine"
  158. 1920 [153]"       (NULL) list- quits to (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)"
  159. 1925 [151]214,22:[153]:[153]c$(c)
  160. 1930 [153]"(NULL)ress (NULL) to quit - atnny other to continueon":[129]d[178]0[164]5
  161. 1940 kk[178]kk[170]1:[161]a$:[139]a$[179][177]""[176]kk[177]1000[167][142]
  162. 1950 [130]:c[178]c[170]s:[139]c[177]5[167]s[178][171]1
  163. 1960 [139]c[179]1[167]s[178][170]1:c[178]1
  164. 1970 [137]1925
  165. 1980 :
  166. 1990 :
  167. 2000 [153]"load"; : [139]fh[167][151]254,.:           [158]ba:[137]2040
  168. 2020 [151]251,64:[151]252,224:[151]253,204
  169. 2030 [158]unpack
  170. 2040 [151]53280,c(x):[151]252,224:[151]253,204:[158]hgr:[142]
  171. 2045 [139]r$(x)[178]"u.wyvern"[167][151]56295,0
  172. 2050 [142]
  173. 3000 :
  174. 3010 :
  175. 3020 :
  176. 10000 [159]15,8,15,"s0:halloween":[160]15:[148]"halloween",8:[128]
  177. 60000 [153]"loadfor  left$ atn (NULL) (NULL) val str$ ' (NULL)    left$ atn (NULL) (NULL) (NULL) (NULL) val val (NULL)"
  178. 60010 [153]"open          (NULL)he chr$houls' (NULL)ight (NULL)ut"
  179. 61000 [151]214,15:[153]
  180. 61110 [153]"  listfrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefre"
  181. 61120 [153]"  print#                                    "
  182. 61130 [153]"           left$atn(NULL)(NULL)valstr$'(NULL) left$atn(NULL)(NULL)(NULL)(NULL)valval(NULL)         "
  183. 61140 [153]"        by (NULL)alt left$arned  (len) 1989      "
  184. 61150 [153]"        (NULL)ublished on (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL) #65     "
  185. 61160 [153]"      (NULL)ubscriptions 1-800-831-2694    "
  186. 61170 [153]"           atnll (NULL)ights reserved        "
  187. 61180 [153]"                                      "
  188. 61190 [153]"  pokepospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospospos"
  189. 61200 [129]t[178]0[164]2000:[130]:[142]
  190.