home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / commodore-users-of-norman / CUON_02_(08-1984).d64 / catacombs (.txt) < prev    next >
Commodore BASIC  |  2019-04-13  |  10KB  |  268 lines

  1. 2 PRINT"[147]":GOSUB4000:GOTO52000:GOSUB20000
  2. 3 REM LOAD MAIN PROGRAM
  3. 10 POKE53280,0:POKE53281,0
  4. 15 PRINT"[147]LOADING MAIN PROGRAM":POKESV+21,0
  5. 20 PRINT"[144]LOAD"CHR$(34)"CAT-GAME"CHR$(34)",8"
  6. 21 POKE631,19:POKE632,17:POKE633,13:POKE634,82:POKE635,117:POKE636,13:POKE198,6
  7. 22 END
  8. 25 DATA 0,0,0,0,0,0,0,0,0,204,192,0,179,64,8,128,64,8,128,76,20,173,76,34
  9. 26 DATA 128,76,65,128,76,227,136,76,156,128,76,128,128,76,170,130,76,128
  10. 27 DATA 128,76,128,128,110,132,160,93,128,128,76,128,128,76,136,136,127,128
  11. 28 DATA 128,76,128
  12. 30 DATA0,128,0,0,128,0,0,128,0,1,64,170,2,32,214,2,160,130,2,32,130,2,32,178
  13. 31 DATA1,64,178,129,64,202,129,64,134,129,65,2,129,67,3,129,66,133,129,66,121
  14. 32 DATA171,106,1,213,86,181,129,66,1,129,66,1,255,126,17,161,66,1
  15. 34 DATA128,76,144,130,76,128,128,76,128,128,76,160,128,109,182,160,109,182
  16. 35 DATA128,127,255,128,64,0,136,64,0,128,64,0,128,64,0,130,64,0,128,64,0
  17. 36 DATA128,64,0,128,64,0,128,64,3,128,64,3,128,64,3,128,64,3,128,64,3,255,255
  18. 37 DATA255
  19. 39 DATA145,66,1,137,66,65,133,66,1,131,66,1,219,110,129,219,106,1,255,250,1
  20. 40 DATA0,2,5,0,2,1,0,2,1,0,2,17,0,2,1,0,2,1,0,2,65,0,2,1,128,2,1,128,2,1
  21. 41 DATA128,2,1,128,2,1,128,2,1,255,255,255
  22. 4000 SV=53248:POKESV+21,0:POKE53281,0:POKE53280,0
  23. 4010 POKE2040,15
  24. 4020 POKE2041,14
  25. 4030 POKE2042,13
  26. 4040 POKE2043,11
  27. 4050 POKESV+39,1:POKESV+40,1:POKESV+41,1:POKESV+42,1
  28. 4080 POKESV+23,15:POKESV+29,15
  29. 4081 FORN=0TO62:READQ:POKE832+N,Q:NEXT
  30. 4082 FORN=0TO62:READL:POKE896+N,L:NEXT
  31. 4084 FORN=0TO62:READM:POKE960+N,M:NEXT
  32. 4086 FORN=0TO62:READR:POKE704+N,R:NEXT
  33. 4088 POKESV+0,135:POKESV+1,142
  34. 4090 POKESV+6,183:POKESV+7,142
  35. 4094 POKESV+4,135:POKESV+5,100
  36. 4096 POKESV+2,183:POKESV+3,100
  37. 4098 RETURN
  38. 15000 FORNN=0TO250:NEXTNN
  39. 15001 V1=54296:X9=54276:ZX=54277:HH=54273:LL=54272:PP=54275:PQ=54274
  40. 15002 W2=54290:A2=54291:H2=54287:L2=54286:P3=54289:P4=54288
  41. 15010 POKEW2,64:POKEX9,64
  42. 15020 POKEV1,15:POKEX9,65:POKEZX,110:POKEPP,15:POKEPQ,15
  43. 15022 POKEW2,65:POKEA2,110:POKEP3,1:POKEP4,1
  44. 15040 IFPN=0THENPOKEHH,4:POKELL,73
  45. 15041 IFPN=1THENPOKEHH,5:POKELL,25
  46. 15042 IFPN=2THENPOKEHH,3:POKELL,155
  47. 15043 IFPN=3THENPOKEHH,3:POKELL,210
  48. 15044 IFPN=0THENPOKEH2,34:POKEL2,75
  49. 15045 IFPN=1THENPOKEH2,40:POKEL2,200
  50. 15046 IFPN=2THENPOKEH2,28:POKEL2,214
  51. 15047 IFPN=3THENPOKEH2,30:POKEL2,140
  52. 15048 IFPN=4THENPOKEH2,40:POKEL2,200
  53. 15049 IFPN=4THENPOKEHH,5:POKELL,25
  54. 15050 IFPN=5THENPOKEH2,34:POKEL2,75
  55. 15051 IFPN=5THENPOKEHH,4:POKELL,73
  56. 15052 IFPN=6THENPOKEH2,28:POKEL2,214
  57. 15053 IFPN=6THENPOKEHH,3:POKELL,155
  58. 15054 IFPN=7THENPOKEH2,32:POKEL2,94
  59. 15055 IFPN=7THENPOKEHH,4:POKELL,12
  60. 15056 IFPN=8THENPOKEH2,45:POKEL2,198
  61. 15057 IFPN=8THENPOKEHH,5:POKELL,185
  62. 15058 IFPN=9THENPOKEH2,34:POKEL2,75
  63. 15059 IFPN=9THENPOKEHH,4:POKELL,73
  64. 15060 IFPN=10THENPOKEH2,28:POKEL2,214
  65. 15061 IFPN=10THENPOKEHH,3:POKELL,155
  66. 15062 IFPN=11THENPOKEH2,30:POKEL2,141
  67. 15063 IFPN=11THENPOKEHH,3:POKELL,210
  68. 15090 PN=PN+1:IFPN=11THENPN=0
  69. 15100 POKE54278,0:RETURN
  70. 20000 REM INSTRUCTIONS
  71. 20001 PRINT"DISPLAY INSTRUCTIONS (Y/N)   Y";:INPUT"[157][157][157]";DI$
  72. 20002 IFDI$="N"THEN15
  73. 20003 IFDI$<>"N"THEN20010
  74. 20010 PRINT"[159][147]WELCOME!  TO THE [158]CATACOMBS OF GOLD[159]"
  75. 20015 PRINT"   BEFORE YOU BEGIN YOUR JOURNEY INTO "
  76. 20020 PRINT"THE DARK AND DANGEROUS WORLD BENEATH  "
  77. 20025 PRINT"THE CASTLE OF COUNT DAMION, HERE IS SOME";
  78. 20030 PRINT"ADVICE THAT MAY MAKE YOUR JOURNEY A"
  79. 20035 PRINT"LITTLE SAFER AND PERHAPS A LITTLE[160]MORE"
  80. 20040 PRINT"PROFITABLE."
  81. 20045 GOSUB40050
  82. 20050 PRINT"[155]   YOU'LL BEGIN YOUR JOURNEY WITH THREE ";
  83. 20055 PRINT"HEARTS, 100 UNITS OF SPEED, STRENGTH,"
  84. 20060 PRINT"AND MORALE. IF ANY OF THESE DROP TO ZERO"
  85. 20062 PRINT"YOU WILL REMAIN IN THE CATACOMBS FOREVER";
  86. 20065 PRINT"   ALL YOU TAKE WITH YOU IS AN OLD AND"
  87. 20070 PRINT"UNRELIABLE MAGIC RING. IT WAS GIVEN TO"
  88. 20075 PRINT"YOU BY THE ONLY MAN TO EVER ENTER THE"
  89. 20080 PRINT"CATACOMBS AND RETURN SAFELY TO THE OUT-"
  90. 20085 PRINT"SIDE WORLD. HE HAS TOLD YOU MANY THINGS"
  91. 20090 PRINT"ABOUT THIS PLACE, AND YOU WILL FIND "
  92. 20095 PRINT"MOST OF IT TO BE TRUE. "
  93. 20096 GOSUB40050:GOSUB21000:PRINT"                                   "
  94. 20097 PRINT"[145][145][155]    HE WARNED YOU TO BE ALERT AND WATCH"
  95. 20098 PRINT"                                      "
  96. 20100 PRINT"FOR THE SNAKES AND BATS, WHO ARE IN "
  97. 20105 PRINT"                                     "
  98. 20115 PRINT"MANY CHAMBERS, AND YOU WILL SEE MORE OF"
  99. 20120 PRINT"THEM, THE DEEPER YOU GO. THEY WILL NOT"
  100. 20125 PRINT"HURT YOU, THEY WILL ONLY STEAL YOUR "
  101. 20130 PRINT"WEAPONS AND SUPPLIES. THE OLD MAN ALSO"
  102. 20135 PRINT"TOLD OF ZOMBIES, CREATURES THAT ARE "
  103. 20140 PRINT"DEAD, BUT UNDER THE VAMPIRE'S CONTROL."
  104. 20145 PRINT"THEY WANDER AROUND THE CATACOMBS AND"
  105. 20150 PRINT"CAN HURT YOU IF THEY GET THE CHANCE."
  106. 20155 GOSUB40050
  107. 20160 PRINT"[145][145][145][152]   HE WARNED THAT SOME OF THE CHAMBERS"
  108. 20162 PRINT"                                     "
  109. 20165 PRINT"WILL QUITE SUDDENLY FILL WITH A DEADLY"
  110. 20170 PRINT"GAS. IF IT DOES, YOU CAN TRY TO OUTRUN"
  111. 20175 PRINT"IT, OR YOU MAY USE THE RING. IF THE "
  112. 20180 PRINT"RING WORKS, IT WILL CLEAR THE CHAMBER"
  113. 20185 PRINT"OF ALL HAZARDS, AND CREATE A TRAPDOOR"
  114. 20190 PRINT"WHICH YOU CAN USE TO DESCEND EVEN DEEPER";
  115. 20195 PRINT"INTO THE CATACOMBS."
  116. 20200 GOSUB40050
  117. 20210 PRINT"[155]   'BEFORE YOU ENTER' HE SAID 'BE SURE"
  118. 20220 PRINT"YOU HAVE SOMETHING TO MAKE A MAP WITH,"
  119. 20225 PRINT"BECAUSE THESE CATACOMBS ARE VAST AND,"
  120. 20230 PRINT"PERHAPS BOTTOMLESS. EVERY LEVEL IS LAID"
  121. 20235 PRINT"OUT DIFFERENTLY, AND SOMETIMES THERE"
  122. 20240 PRINT"ARE TREMORS WHICH CAUSE CAVE-INS, AND"
  123. 20245 PRINT"IF THAT HAPPENS, YOUR MAP MAY BE WRONG!'";
  124. 20250 PRINT"   ALSO, THE MAP COULD PROVE CRUCIAL TO"
  125. 20255 PRINT"YOUR SURVIVAL, BECAUSE ON EVERY LEVEL,"
  126. 20260 PRINT"THERE IS ONLY ONE CHAMBER THAT LEADS"
  127. 20265 PRINT"OUT OF THE CATACOMBS. IT IS CHAMBER #1.";
  128. 20270 GOSUB40050
  129. 20275 PRINT"[152]TRY TO FIND IT QUICKLY, WHEN YOU DESCEND";
  130. 20280 PRINT"SO IF YOU NEED TO LEAVE, YOU CAN."
  131. 20285 PRINT"   IF YOUR STRENGTH OR SPEED ARE GETTING";
  132. 20290 PRINT"LOW, YOU CAN GO TO CHAMBER #1 AND"
  133. 20295 PRINT"TRADE YOUR EXPERIENCE FOR SPEED AND/OR"
  134. 20300 PRINT"STRENGTH. WHILE YOUR THERE YOU MAY"
  135. 20305 PRINT"LEAVE THE CASTLE TO BUY WEAPONS AND"
  136. 20310 PRINT"SUPPLIES, OR END THE JOURNEY WITH THE"
  137. 20315 PRINT"GOLD YOU HAVE FOUND. GOLD IS PICKED UP"
  138. 20320 PRINT"WHEN YOU LEAVE A ROOM, AND YOU MAY ONLY"
  139. 20325 PRINT"TAKE GOLD FROM THE SAME CHAMBER ONCE."
  140. 20327 GOSUB40050
  141. 20330 PRINT"[145][145][145][155]YOUR TOTAL GOLD IS DISPLAYED AFTER YOU"
  142. 20332 PRINT"                                    "
  143. 20335 PRINT"LEAVE A ROOM, BUT IT SHOWS HOW MUCH YOU"
  144. 20340 PRINT"HAD TWO MOVES AGO, NOT CURRENTLY!"
  145. 20345 PRINT"AND FINALLY, ALERTNESS IS IMPORTANT,"
  146. 20350 PRINT"BECAUSE SOME ROOMS WILL HAVE BONUS GOLD"
  147. 20355 PRINT"AND FOOD IN THEM. IF YOU SEE GOLD FLASH"
  148. 20360 PRINT"ON THE SCREEN, ENTER A 'G' TO GET BONUS"
  149. 20365 PRINT"IF YOU SEE FOOD FLASH, ENTER A[160]'F' TO "
  150. 20370 PRINT"GET THE FOOD BONUS.";
  151. 20371 PRINT" FOR EVERY 10 MINUTESYOU SURVIVE ON ONE";
  152. 20372 PRINT" LEVEL, YOU WILL GAIN A BONUS OF 100 ";
  153. 20373 PRINT"UNITS OF EXPERIENCE."
  154. 20375 GOSUB40050
  155. 20380 PRINT"[145][145][145][152]EACH WEAPON CAN BE USED ONLY ONCE EXCEPT";
  156. 20382 PRINT"                                      "
  157. 20385 PRINT"THE GUN, IT CAN BE USED OVER AND OVER"
  158. 20390 PRINT"UNLESS A BAT OR SNAKE STEALS IT."
  159. 20395 PRINT"SNAKES AND BATS WILL TAKE THE CHEAPER"
  160. 20400 PRINT"WEAPONS FIRST, AND WILL TAKE ONLY ONE"
  161. 20405 PRINT"ITEM EACH TIME. TO FIND OUT WHAT THEY"
  162. 20410 PRINT"TOOK, CHECK YOUR STATUS."
  163. 20415 GOSUB40050:GOTO40110
  164. 21000 PRINT"[152]   HE TOLD YOU ABOUT COUNT DAMION'S"
  165. 21002 PRINT"        [158]MAGICAL ORB[152]"
  166. 21003 PRINT"AND HOW IT MADE HIM SO RICH";
  167. 21005 PRINT" AND POWERFULHE SAID THAT ANY MAN WHO POSSESSED THE  'ORB',";
  168. 21010 PRINT" WOULD POSSESS POWERS AND WEALTH  UNIMAGINABLE. COUNT DAMION ";
  169. 21015 PRINT"HIMSELF      GAURDS THE 'ORB' AND IF YOU SHOULD FIND THE CHAMBER";
  170. 21020 PRINT" WHERE IT IS HIDDEN YOU WILL FIGHT ONE FINAL BATTLE.";
  171. 21025 PRINT" IF YOU WIN, THE 'ORB' AND ALL ITS POWERS WILL BE YOURS."
  172. 21030 PRINT"IF YOU LOSE, YOU WILL REMAIN FOREVER IN THE [158]CATACOMBS OF GOLD."
  173. 21035 PRINT"[145][145]":GOSUB40050:RETURN
  174. 40050 GOSUB15000:PRINT"[153]PRESS RETURN[146] TO CONTINUE[159]";
  175. 40052 INPUTHC$:IFHC$=""THENGOSUB15000:PRINT"[147]":RETURN
  176. 40054 IFHC$<>""THENPRINT"[145][145]":GOTO40050
  177. 40110 PRINT"[159]        EXPLANATION OF COMMANDS"
  178. 40120 PRINT"IN CHAMBER #1 "
  179. 40125 PRINT"<T>  TRADE -- ALLOWS YOU TO TRADE"
  180. 40130 PRINT"              YOUR EXPERIENCE FOR "
  181. 40135 PRINT"              SPEED AND/OR STRENGTH"
  182. 40140 PRINT"<E>  EXIT  -- MOVES YOU TO OUTSIDE"
  183. 40145 PRINT"              THE CASTLE WHERE YOU MAY"
  184. 40150 PRINT"              BUY ITEMS TO HELP YOU OR"
  185. 40155 PRINT"              END THE ADVENTURE "
  186. 40160 PRINT"IN ANY CHAMBER"
  187. 40165 PRINT"<A>  FIGHT -- YOU WILL FIGHT THE VAMPIRE";
  188. 40170 PRINT"              IF YOU'RE STRONG AND QUICK";
  189. 40175 PRINT"              ENOUGH, YOU WILL KILL HIM"
  190. 40200 GOSUB40050:GOTO40210
  191. 40210 PRINT"IN ANY CHAMBER"
  192. 40215 PRINT"<R>  RING  -- WILL CLEAR THE CHAMBER OF";
  193. 40220 PRINT"               ALL HAZARDS, AND CREATE "
  194. 40222 PRINT"              A TRAPDOOR YOU MAY USE  "
  195. 40223 PRINT"              TO DESCEND, IF IT WORKS."
  196. 40225 PRINT"              IF IT BACKFIRES, YOU WILL"
  197. 40230 PRINT"              LOSE 1/2 OF YOUR SPEED AND";
  198. 40235 PRINT"              STRENGTH."
  199. 40240 PRINT"<S> STATUS -- WILL SHOW YOU YOUR CURRENT";
  200. 40245 PRINT"              SUPPLIES & HEALTH, AND THE";
  201. 40250 PRINT"              VAMPIRE'S POWER AND SPEED"
  202. 40270 GOSUB40050:GOTO40280
  203. 40280 PRINT"      COMMANDS CONTINUED:"
  204. 40285 PRINT"<D> DESCEND -  IF A TRAP DOOR IS PRESENT";
  205. 40290 PRINT"               YOU MAY USE IT TO DROP "
  206. 40295 PRINT"               TO A LOWER LEVEL"
  207. 40310 GOSUB40050:GOTO40315
  208. 40315 IFMT$="OPTIONS"THENPRINT"[147]":GOTO320
  209. 40320 PRINT"[155]    EFFECT OF WEAPONS & MATERIALS"
  210. 40325 PRINT"GUN & BULLETS:    DOUBLES YOUR STRENGTH"
  211. 40330 PRINT"                  IN BATTLE ONLY, NOT "
  212. 40335 PRINT"                  PERMANENTLY "
  213. 40340 PRINT"WOODEN STAKES:    ADDS 50%TO YOUR  "
  214. 40345 PRINT"                  STRENGTH IN BATTLE"
  215. 40350 PRINT"CROSSES      :    ADDS 25%TO YOUR  "
  216. 40355 PRINT"                  STRENGTH IN BATTLE"
  217. 40360 PRINT"FOOD         :    MAKES VAMPIRE BITE"
  218. 40365 PRINT"                  ONLY 1/2 AS BAD"
  219. 40370 GOSUB40050:GOTO40380
  220. 40380 PRINT"GAS MASK     :    MAKES GETTING "
  221. 40385 PRINT"                  GASSED ONLY 1/2"
  222. 40390 PRINT"                  AS BAD "
  223. 40395 PRINT"MIRRORS      :    MAKES GETTING HURT"
  224. 40400 PRINT"                  BY ZOMBIE ONLY 1/2 AS"
  225. 40405 PRINT"                  BAD "
  226. 40406 GOSUB40050:GOTO40420
  227. 40420 PRINT"MAGICAL ORB    :CAN BE FOUND BY ENTERING"
  228. 40421 PRINT"                A * FOR THE ROOM NUMBER"
  229. 40422 PRINT"YOUR WEAPONS WILL BE USELESS AGAINST":PRINT,"COUNT DAMION"
  230. 40506 GOSUB40050:GOTO15
  231. 50000 PRINT"      [169] [223]   [169] [223]      [223][169] [162][223][169][162][146][190]"
  232. 50005 PRINT"     [184]   [184]     [223][169]  [162] [162][162][223]"
  233. 50010 PRINT"                    [184][146][169][184][184][146][169]"
  234. 50019 PRINT
  235. 50020 PRINT"      [157][157][157]"
  236. 50025 PRINT"   [184][157][157][157]"
  237. 50030 PRINT"    [157][157][157]"
  238. 50031 PRINT"      [169] [223]   [169] [223]      [223][169] [162][223][169][162][146][190]"
  239. 50032 PRINT"     [184]   [184]     [223][169]  [162] [162][162][223]"
  240. 50033 PRINT"                    [184][146][169][184][184][146][169]"
  241. 50250 PRINT"[159]HIT ANY KEY":PRINT"TO BEGIN"
  242. 50251 GETA$:IF A$=""THENGOSUB15000:GOTO50300
  243. 50252 IF A$<>""THENPOKESV+21,0:GOTO20000
  244. 50300 CC=CC+1
  245. 50301 IFCC=1THENPRINT"[156]":GOTO50000
  246. 50302 IFCC=2THENPRINT"":GOTO50000
  247. 50303 IFCC=3THENPRINT"[154]":GOTO50000
  248. 50304 IFCC=4THENPRINT"":GOTO50000
  249. 50305 IFCC=5THENPRINT"":GOTO50000
  250. 50306 IFCC=6THENPRINT"":GOTO50000
  251. 50400 IFCC=7THENCC=0:GOTO50300
  252. 52000 PRINT"[147]"
  253. 52005 PRINT"[206]           [158] [163][163][163] [146][155]             [191]       [205]"
  254. 52006 PRINT"","                  [155] [201][213]   "
  255. 52008 PRINT"","                  [155][202][177][219][178][203]  "
  256. 52010 PRINT"","[162][162][162][162][162][162][162][162][162][162][162][162][162][162]    [155][213][177][179][202]  "
  257. 52012 PRINT,"[206]       [155][182][161]     [205]     [155][221]"
  258. 52014 PRINT,"[206]        [155][182][161]      [205]  [206][163][163][205]"
  259. 52016 PRINT"[206][163][163]          [155][191]       [163][163]    [205]"
  260. 52018 PRINT,"[157][157][157][206]   [158]  [164][164][164] [146]     [155][191]          +  [165]"
  261. 52020 PRINT,"[157][157][157][157][206]     [158][167][205] [206][165][146]      [155][183][183][191]      +   [165]  ";
  262. 52024 PRINT"  [164][164][164][164][206]      [158][167] [214] [165][146]         [155][191]       + [205]""
  263. 52026 [153]"THEN           SYSTHEN(null) (null)FNWAIT          LISTUSRUSRSIN       (null)";
  264. 52027 [153]"      CMDCMDCMD","SYS         (null)"
  265. 52028 [153]"   FRECMDCMDCMD","SYS WAIT*RND    GET"
  266. 52029 [153]"    CMDCMDCMD","SYS           WAITSTEP"
  267. 52030 [151]SV[170]21,15:[153]"SYS":[137]50000
  268.