home *** CD-ROM | disk | FTP | other *** search
/ UpTime Volume 2 #7 / utv2n7s2.d64 / neutron.exe (.txt) < prev    next >
Commodore BASIC  |  2022-08-28  |  6KB  |  160 lines

  1. 10 rem    neutron.exe jc hilty 11/88
  2. 12 poke53280,0:poke53281,0:print"[147]"
  3. 14 gosub800
  4. 15 gosub850
  5. 16 pokev+21,255
  6. 17 pq=30
  7. 18 gosub450:gosub300:gosub312:print"[159]"tab(19)pq
  8. 20 w1=peek(v+30):w2=peek(v+31)
  9. 30 lp=lp+1:iflp=100thenpoke2044,194:goto200
  10. 32 iflp=85thenpoke2044,193
  11. 34 sys(j):ifst=0then38
  12. 35 ifpeek(3)=4thenpoke50443,255:poke50688,32
  13. 36 ifpeek(3)=8thenpoke50443,1:poke50688,32
  14. 37 fb=-((peek(56320)and16)=0):iffb=1then100
  15. 38 w1=peek(v+30):ifw1and32then200
  16. 40 ifpeek(v+9)<upthenpoke50442,1:poke50688,16
  17. 42 ifpeek(v+9)>dothenpoke50442,255:poke50688,16
  18. 44 ifpeek(v+8)>eathenpoke50441,255:poke50688,16
  19. 46 ifpeek(v+8)<wethenpoke50441,1:poke50688,16
  20. 48 poke2046,rr:poke2047,rr:rr=rr+1:ifrr=203thenrr=199
  21. 50 goto30
  22. 99 rem    fire laser
  23. 100 tb=int(peek(v+10)/8.3):print""tab(tb);f$
  24. 104 w2=peek(v+31):ifw2and16then110
  25. 106 print""tab(tb);a$:goto38
  26. 110 poke50432,0:print""tab(tb);a$:poke2044,198
  27. 112 sc=sc+100-lp:print"[159]"tab(8);sc:gosub300:w2=peek(v+31):poke50432,63
  28. 114 pq=pq-1:print"[159]"tab(20)"  ":print""tab(19)pq:ifpq=0then2000
  29. 115 goto38
  30. 199 rem    neutron-man hit
  31. 200 poke50432,0:forx=0to24:pokes+x,0:next:pokes+24,15:pokes+5,8:pokes+6,255
  32. 202 pokes+4,85:f1=100:f2=230:forq=1to80:pokes,f1:poke2045,198:pokes+15,f2
  33. 204 poke2045,196:f2=f2-2:f1=f1*.99:next:pokes+6,15
  34. 206 sh=sh-1:print"[159]"tab(34);sh:ifsh=0then400
  35. 208 goto18
  36. 299 rem    initialize alien craft
  37. 300 d=int(2*rnd(5)):ifd=0thenpoke50441,1:goto304
  38. 302 poke50441,255
  39. 304 d=int(2*rnd(5)):ifd=0thenpoke50442,1:goto308
  40. 306 poke50442,255
  41. 308 up=int(65*rnd(5)+70):do=int(65*rnd(6)+106)
  42. 310 ea=int(84*rnd(4)+148):we=int(84*rnd(6)+64):poke50688,16
  43. 311 pokev+8,140:pokev+9,120:poke2044,192:lp=0:return
  44. 312 pokev,30:pokev+1,30:pokev+2,80
  45. 314 pokev+3,30:pokev+4,170:pokev+5,30:pokev+6,160:pokev+7,30:pokev+10,160
  46. 315 pokev+11,198:poke50443,0:poke50688,32:poke50432,63
  47. 316 return
  48. 399 rem    game over
  49. 400 poke50432,15:print"[159]"tab(11)"g a m e  o v e r"
  50. 402 print:printtab(11)"score ";sc
  51. 404 forx=0to24:pokes+x,0:next:pokes+24,15
  52. 406 a=15:q=107:pokes+5,a:pokes+12,a:pokes+19,a:pokes+6,q:pokes+13,q
  53. 408 pokes+20,q:pokes+14,30:pokes+15,60:pokes+4,33:pokes+11,23
  54. 410 pokes+18,23:forf1=40to80step1:pokes+1,f1
  55. 412 forf2=60to31step-5:pokes+8,f2:nextf2:nextf1
  56. 414 pokes+4,32:pokes+11,32:pokes+18,32:fort=0to2000:next
  57. 416 printtab(11)"play again--y or n"
  58. 418 getjk$:ifjk$<>""then418
  59. 420 getp$:ifp$=""then420
  60. 422 ifp$="y"then426
  61. 424 ifp$="n"then10000
  62. 425 goto420
  63. 426 poke50432,0:sc=0:sh=5:gosub850:goto17
  64. 450 forx=0to24:pokes+x,0:next:pokes+24,15:pokes+12,160:pokes+13,252
  65. 452 pokes+8,80:pokes+7,40:pokes+11,129
  66. 454 return
  67. 800 forx=828to848:reada:pokex,a:next
  68. 805 poke147,0:sys57812"neutron.font",8,1:sys62631:poke53272,31
  69. 806 poke147,0:sys57812"neutron.sp2",8,1:sys62631
  70. 808 poke50432,0:sys51104
  71. 810 poke50433,254:poke50434,1:poke50435,0:poke50436,1:poke50437,2:poke50438,1
  72. 812 poke50439,0:poke50440,2:poke50441,0:poke50442,0:poke50443,0:poke50444,0
  73. 813 poke50688,63
  74. 814 f$="[158][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145][181][157][145]"
  75. 815 a$=" [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] [157][145] "
  76. 816 v=53248:s=54272:lp=0:sc=0:sh=5:c=49152:j=828:rr=199
  77. 818 forx=2040to2043:pokex,197:next:poke2044,192:poke2045,196:poke2046,195
  78. 820 poke2047,195:forx=39to42:pokev+x,01:next:pokev+23,0
  79. 822 pokev+43,1:pokev+44,07:pokev+45,1:pokev+46,1:pokev+28,240:pokev+29,255
  80. 824 pokev+37,1:pokev+38,2:pokev,40:pokev+1,30:pokev+2,80:pokev+16,128
  81. 825 pokev+3,30:pokev+4,140:pokev+5,30:pokev+6,160:pokev+7,30:pokev+8,140
  82. 826 pokev+9,120:pokev+10,160:pokev+11,198:pokev+12,30:pokev+13,198
  83. 827 pokev+14,24:pokev+15,198
  84. 828 print"[147]":print"[154]neutron-man is flanked on his left and"
  85. 829 print"right by two alien ships that he has"
  86. 830 print"captured. thirty alien ships will"
  87. 831 print"attempt a rescue. you must destroy each"
  88. 832 print"ship by firing a laser at the ship.":print
  89. 833 print"you must destry each alien ship before"
  90. 834 print"it reaches you or you'll lose a unit.":print
  91. 835 print"use the joystick to move left or right."
  92. 836 print"press the button to fire a laser. you"
  93. 837 print"have unlimited energy, but you must"
  94. 838 print"stop firing to change your direction of":print"flight.":print
  95. 839 print"the faster you destroy a ship, the"
  96. 840 print"more points you receive.":print
  97. 841 print"avoid the deadly gamma beams as they"
  98. 842 print"will cost you a unit. good luck!":print
  99. 843 printtab(12)"press firebutton":fort=0to1000:next
  100. 844 wait56320,16,16
  101. 845 return
  102. 849 rem    playing screen
  103. 850 print"[147][156]neutron-man   neutron-man   neutron-man"
  104. 852 print"e[146]  [159]score";sc;tab(17)"saucers[146]     units";sh;tab(38)"[156]e"
  105. 854 print"u"tab(38)"u":print"t"tab(38)"t":print"r"tab(38)"r"
  106. 856 print"o"tab(38)"o":print"n"tab(38)"n":print"-"tab(38)"-"
  107. 858 print"m"tab(38)"m":print"a"tab(38)"a":print"n"tab(38)"n"
  108. 860 print" "tab(38)" ":print" "tab(38)" ":print"n"tab(38)"n"
  109. 862 print"e"tab(38)"e":print"u"tab(38)"u":print"t"tab(38)"t"
  110. 863 print"r"tab(38)"r":print"o"tab(38)"o":print"n"tab(38)"n"
  111. 864 print"-"tab(38)"-":print"m"tab(38)"m":print"a"tab(38)"a"
  112. 865 print"[156]neutron-man   neutron-man   neutron-man"
  113. 870 return
  114. 1000 poke56578,peek(56578)or3:poke56576,(peek(56576)and252)or3:print"[147]"
  115. 1002 poke53265,27:poke53270,200:poke53272,31:return
  116. 2000 sys65418:forx=0to2000:next:remifpeek(12278)=251thensys52480
  117. 2001 forx=0to24:pokes+x,0:next:pokev+21,0:print"[147][154]"tab(14)"good job!"
  118. 2004 sys49152,"comic2.pic",40960,24576:sys860
  119. 2005 wait56320,16,16:gosub1000:print"[147]..rocketing back to earth.."
  120. 2006 sys49152,"comic4.pic",40960,24576:sys860
  121. 2007 wait56320,16,16:gosub1000:gosub3000
  122. 2008 poke12280,sh:poke12284,int(sc/100)
  123. 2012 print"[147][154]approaching the city....[144]"
  124. 2014 print"[144]load"chr$(34)"neutron.exe4"chr$(34)",8";
  125. 2018 poke198,4:poke631,13:poke632,82:poke633,213:poke634,13
  126. 2020 new
  127. 3000 print"[147][154]":print"the next confrontation takes place in"
  128. 3002 print"the city streets. use the joystick"
  129. 3004 print"to move left or right. you must "
  130. 3006 print"smash the falling neutron bolts with "
  131. 3008 print"your fists. for each bolt that you"
  132. 3010 print"smash, you receive an additional"
  133. 3012 print"energy unit, to a maximum of nine,"
  134. 3014 print"and 100 points for your score."
  135. 3024 print:printtab(12)"press firebutton":fort=0to1000:next
  136. 3026 wait56320,16,16
  137. 3028 print"[147][154]after 25 bolts have fallen, the saucers"
  138. 3029 print"will launch an assault against the"
  139. 3030 print"city. use the joystick to move up and"
  140. 3031 print"down. press the firebutton to fire a"
  141. 3032 print"neutron ray. fire carefully, as the ray"
  142. 3033 print"has a limited range.":print:print"you can fire as much as you want,"
  143. 3034 print"but you must stop firing to move.":print
  144. 3035 print"avoid colliding with a saucer, as this"
  145. 3036 print"will cost you an energy unit.":print
  146. 3037 print"you must hit 20 saucers to progress"
  147. 3038 print"to the next scenario. good luck!":print
  148. 3040 printtab(11)"press  firebutton":fort=0to1000:next
  149. 3050 wait56320,16,16
  150. 3052 print"[147]":poke53272,21:return
  151. 6690 rem    joystick data
  152. 6700 data 173,0,220,41,31,73,31,133,3,173,1,220,73,255,133,2,5,3,133,144,96
  153. 10000 sys65418:pokev+21,0:poke53281,0:poke53280,0:pokev+23,0:pokev+29,0
  154. 10001 poke1023,peek(12278):rem restore the fastboot flag
  155. 10002 pokev+16,0:poke53272,21
  156. 10004 print"[147][144]load"chr$(34)"reboot"chr$(34)",8";
  157. 10006 poke198,4:poke631,13:poke632,82:poke633,213:poke634,13
  158. 10007 remifpeek(12278)=251thensys52480
  159. 10008 new
  160.