Advertisement
Guest User

ATTACK OF THE AARDVARKS 64

a guest
Mar 21st, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. 100 print"{CLR}":s=54272:fori=0to24:pokes+i,0:next:s1=s+7:s2=s+14:pokes+24,15
  2. 110 poke53280,2:poke53281,14:gosub720
  3. 120 print"{CLR}{2 DOWN}{BLK} instructions (y/n)?"
  4. 130 getg$:ifg$=""then130
  5. 140 ifg$="y"thengosub880
  6. 150 print"{CLR}"spc(9)"{DOWN}{BLK}{RVS} aardvark attack "
  7. 160 printspc(10)"{2 DOWN}{WHT}alphanumeric weapons"
  8. 170 printspc(14)"{4 DOWN}{WHT}which level?":printspc(10)"{DOWN}{BLK}(1:novice 9:expert)"
  9. 180 gethf$:ifhf$<"1"orhf$>"9"then180
  10. 190 hf=int(2.5^(9-val(hf$)))
  11. 200 sc=0:gosub790
  12. 210 :
  13. 220 rem new letter
  14. 230 gosub820:poke56334,peek(56334)and254:poke1,peek(1)and251
  15. 240 fori=0to3:forj=0to3:c(i,j)=0:next:next
  16. 250 l=int(rnd(1)*26+1):b=53248+l*8:f=0
  17. 260 fori=0to3
  18. 270 f=abs(f-1):t=peek(b+2*i+1-f)
  19. 280 forj=0to3:m=(fnm(j)andt)/(4^j):c(i,j)=c(i,j)+int(m*(4^f)):next
  20. 290 iffthen270
  21. 300 next:poke1,peek(1)or4:poke56334,peek(56334)or1
  22. 310 :
  23. 320 rem flashing
  24. 330 pokes+5,0:pokes+6,240:pokes,0:pokes+1,0:pokes+4,33
  25. 340 fory=1to70:z=int(rnd(1)*10):zz=1037+z:pokezz+54272,1:pokezz,160
  26. 350 pokes+1,rnd(1)*15+10:pokezz+54272,0:next:pokes+4,8
  27. 360 fori=0to3:forj=0to3:poke1135-j+40*i,s(c(i,j)):next:next
  28. 370 lf=0:fh=0:sh=0
  29. 380 :
  30. 390 rem start attack
  31. 400 pokes1+5,0:pokes1+6,240:pokes1,0:pokes1+1,0:pokes1+4,17:poke198,0
  32. 410 forx=1to18:pokes1+1,(19-x)*7
  33. 420 getg$:ifg$=""then480
  34. 430 iflfthen460
  35. 440 if(asc(g$)-64)<>lthen480
  36. 450 lf=1:fh=x:n=s:gosub1010
  37. 460 ifval(g$)-1<>zand(g$<>"0"orz<>9)then480
  38. 470 sh=x:poke198,0:goto590
  39. 480 fory=1tohf:next:poke(1037+z+x*40),81+lf*128:next:pokes1+4,8
  40. 490 :
  41. 500 rem lose round
  42. 510 poke198,0:n=s2:gosub1010:fori=2to18:poke53280,iand15:next
  43. 520 forxx=0to3:pb=(1797+z+(40*xx)):ifpeek(pb)<>32then540
  44. 530 next:goto620
  45. 540 ifxx=3orlfthen560
  46. 550 pokepb+40,32
  47. 560 pokepb,32:goto230
  48. 570 :
  49. 580 rem scoring
  50. 590 n=s2:gosub1010:pokes1+4,8:sc=sc+int((500-5*fh-2*sh)/sqr(fh)):goto230
  51. 600 :
  52. 610 rem lose routine
  53. 620 fory=1to100:poke53280,rnd(1)*255:poke53281,rnd(1)*255:next
  54. 630 poke53280,2:poke53281,14:print"{CLR}{DOWN}{BLK}";:fori=1to38:print"*";:next
  55. 640 printspc(12)"{DOWN}{WHT}sorry, you lost."
  56. 650 printspc(13)"{3 DOWN}{BLU}your score";sc
  57. 660 printspc(15)"{DOWN}at level ";hf$
  58. 670 printspc(11)"{3 DOWN}{BLK}play again (y/n)?"
  59. 680 gety$:ify$=""then680
  60. 690 ify$="n"thenprint"{CLR}":end
  61. 700 goto150
  62. 710 :
  63. 720 dims(15),c(3,3)
  64. 730 deffnm(x)=3*(4^x)
  65. 740 forx=0to15:reads(x):next:return
  66. 750 data32,108,123,98,124,225,255,254
  67. 760 data126,127,97,252,226,251,236,160
  68. 770 :
  69. 780 rem screens
  70. 790 print"{CLR}"
  71. 800 poke214,18:print:printspc(10)"{BLK}{[Q]} 1234567890 {[W]} level "hf$
  72. 810 forx=1to4:printspc(10)"{[Q]} {BLU}{RVS} {OFF}{BLK} {[W]}":next
  73. 820 print"{HOME}"spc(10)"{BLK}{[Q]} {RED}********** {BLK}{[W]}"
  74. 830 print"{HOME}":fori=1to6:printspc(27)"[RED}{RVS} ":next
  75. 840 print"{HOME}{DOWN}":fori=1to4:printspc(28)"{BLK}{RVS} ":next
  76. 850 print"{HOME}":fori=1to18:printspc(10)"{BLK}{[Q]} {CYN} {BLK} {[W]}":next
  77. 860 poke214,16:print:printspc(27)"score"sc:return
  78. 870 :
  79. 880 rem instructions
  80. 890 print"{CLR}{DOWN}{BLK} ";:fori=1to38:print"*";:next:print
  81. 900 print"[DOWN]andromedan aardvarks are attacking earth"
  82. 910 printspc(6)"{DOWN}{WHT}they have 26 kinds of bombs":printspc(18)"{DOWN}and"
  83. 920 printspc(6)"{DPWN}they're attacking 10 cities!"
  84. 930 print"{3 DOWN}{BLK}your alphanumeric radar can save earth"
  85. 940 printspc(4)"{3 DOWN}{WHT}first: recognize the bomb (a-z)"
  86. 950 printspc(7)"{DOWN}then: save the city (0-9)"
  87. 960 printspc(9)"{2 DOWN}{BLK}{RVS}hit any key to play"
  88. 970 getg$:ifg$=""then970
  89. 980 return
  90. 990 :
  91. 1000 rem explosion
  92. 1010 poken+5,37:poken+6,252:poken,100:poken+1,5:poken+4,129:poken+4,128
  93. 1020 return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement