home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1993 July
/
1993-07.d64
/
scud
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
7KB
|
154 lines
10 rem scud
20 rem by wm. f. snow
30 gosub1020
40 clr:dim q$(35),a$(35),co$(35),ca$(35),y(35):v=53248:sn=54272:pokesn+24,15
50 poke53280,7:poke53281,7:pokev+31,0
60 pokesn+4,0:print"[147]"spc(14)"please wait":print" our spies are";
70 print" checking on the enemy"
80 for qa=1to35:readq$(qa),a$(qa):next
90 for s=12288 to 12351:readsp:pokes,sp:next
100 fors=12352to 12415:readsp:pokes,sp:next
110 fors=12416 to 12479:read sp:pokes,sp:next
120 fors=12480to12543:readsp:pokes,sp:next
130 fors=12544 to 12607:read sp:pokes,sp:next
140 fors=12608 to 12671:readsp:pokes,sp:next
150 for i=1 to 35
160 x=int(rnd(.)*35)+1
170 for ck=1 to35:if x=y(ck)then160
180 nextck:y(i)=x
190 co$(x)=q$(i):ca$(x)=a$(i):nexti
200 sc=0:fori=1to4:pokev+i,0:next:pokev+21,0:p=p+1:if p>35thenp=35:goto1140
210 poke53280,13:poke53281,1
220 jr=int(rnd(.)*10)+2
230 print"[147] scuds have been launched at the
240 [153][166]9)"capital of stop"co$(p)
250 [153]:[153][166]12)"should you go to"
260 q[178][181]([187](.)[172]10)[170]1:[139] q[178]p [167]260
270 r[178][181]([187](.)[172]10)[170]1:[139] r[178]p [176] r[178]q [167]270
280 [151]2040,192:[151]v[170]29,1:[151]v[170]40,1
290 s[178][181]([187](.)[172]3)[170]1:[145] s [137]300,340,380
300 [153]:[153][166]9)"stopa)"ca$(p):[153]:[153][166]9)"stopb)"ca$(q)
310 [153]:[153][166]9)"stopc)"ca$(r):[153][166]9)"openhit q to end game"
320 [141]680:[139] b$[178]"a"[167]420
330 [141]820:[137]200
340 [153]:[153][166]9)"stopa)"ca$(q):[153]:[153][166]9)"stopb)"ca$(p)
350 [153]:[153][166]9)"stopc)"ca$(r):[153][166]9)"openhit q to end game"
360 [141]680:[139] b$[178]"b"[167]420
370 [141]820:[137]200
380 [153]:[153][166]9)"stopa)"ca$(r):[153]:[153][166]9)"stopb)"ca$(q)
390 [153]:[153][166]9)"stopc)"ca$(p):[153][166]9)"openhit q to end game"
400 [141]680:[139] b$[178]"c"[167]420
410 [141]820:[137]200
420 [153]"load":[151]53280,13:[151]53281,13
430 [153]""[166]8)"stoppeek":[153][166]7)"clr(NULL)(NULL) wait"
440 [153]" stop sgnorright$(NULL)(NULL)tan (NULL)(NULL)":[153]" clr(NULL)(NULL)tab( wait+peek(NULL)to(NULL)(NULL)"
450 [153]" stop(NULL) + wait+peekclr(NULL) (NULL)+":[141]1120
460 [151]v[170]21,3:xa[178]75:ya[178]200:[151]2041,194:[151]v[170]39,11:[151]v[170]40,6
470 sc[178]sc[170]1:[139]sc[177]3 [167] [141]970:[137]200
480 ps[178][181]([187](.)[172]3)[170]1:[145] ps [137]490,720,770
490 [151]2040,192:[151]v[170]39,11:x[178]60:xx[178]255:[129]a[178]1[164]25:xx[178]xx[171]3:[151]v,xx
500 [151]v[170]1,x:[141]570
510 [151]v[170]2,xa:[151]v[170]3,ya:[130]
520 [151]v[170]30,0
530 [151]2040,193:[129]a[178]1[164]50:xx[178]xx[171]3:x[178]x[170]3:[151]v,xx:[151]v[170]1,x:[141]570
540 [139]fb[178]0[175][194](v[170]30)[175]2[178]2[167] [141]630:[137]470
550 [151]v[170]2,xa:[151]v[170]3,ya:[139]([194](v[170]31)[175]1)[178]1[167]910
560 [130]:[137]200
570 jy[178][194](56320)[175]15:fb[178][194](56320)[175]16:[143] read stick and button
580 [139]jy[178]7[167]xa[178]xa[170]jr:[139] xa[177]255[167] xa[178]255
590 [139]jy[178]11[167]xa[178]xa[171]jr:[139]xa[179]1 [167] xa[178]1
600 [139]jy[178]13[167]ya[178]ya[170]jr:[139] ya[177]250 [167] ya[178]250
610 [139]jy[178]14[167]ya[178]ya[171]jr:[139] ya[179]1 [167] ya[178]1
620 [142]
630 [151]2040,195:[151]v[170]39,2:[141]1100:[151]v[170]23,1:[151]v[170]29,1
640 [129]ec[178]1[164]8:[151]v[170]39,ec:[129]de[178]1[164]70:[130]:[130]:[151]v,0:[151]v[170]1,0
650 [151]v[170]31,0:[151]v[170]23,0:[142]
660 [161] b$:[139] b$[178]"" [167]660
670 [142]
680 [161] b$:[139]b$[178]""[167]680
690 [139] b$[178]"a"[176]b$[178]"c"[176]b$[178]"b"[167][142]
700 [139] b$[178]"q"[167]1140
710 [137]680
720 [151]2040,196:[151]v[170]39,11:[151]v,60:[129]vs[178]0[164]200[169]5:[141]570
730 [151]v[170]1,vs:[151]v[170]30,0:[151]v[170]2,xa
740 [151]v[170]3,ya:[139]fb[178]0[175][194](v[170]30)[175]2[178]2[167][141]630:[137]470
750 [139] ([194](v[170]31)[175]1)[178]1 [167]910
760 [130]:[137]200
770 [151]2040,197:[151]v[170]39,11:[151]v,255:[151]v[170]1,220
780 [129]x[178]255[164]0[169][171]3:[141]570:[151]v,x:[151]v[170]30,0
790 [151]v[170]2,xa:[151]v[170]3,ya:[139]fb[178]0[175][194](v[170]30)[175]2[178]2[167][141]630:[137]470
800 [139] ([194](v[170]31)[175]1)[178]1 [167]910
810 [130]:[137]200
820 [153]"load(NULL)(NULL) sgn + sgn sgn (NULL)usr usr(NULL)usrusr peek +(NULL) sgn"
830 [153]"(NULL)(NULL) sgn + sgn sgn (NULL)and + peek + (NULL) sgn"
840 [153]"sgn(NULL) sgn + sgn sgn sgn + peek + (NULL)sgn"
850 [153]"(NULL)(NULL) (NULL)and(NULL) (NULL)and (NULL)and (NULL)and + peek + sgn"
860 [153] "stop"[166]4)ca$(p):[153]" the capital ofstop":[153][166]4)co$(p)
870 [153]" has been destroyed ";
880 [153]"by scud missles. the person who could have saved the citydid";
890 [153]" not have enough information to get to the right city in time."
900 [153]"printhit any key to continue":[141]660:[142]
910 [151]v[170]21,0:[153]""[166]4)"(NULL) rnd (NULL) (NULL)":[141]1100
920 [153][166]4)"(NULL) (NULL) (NULL) (NULL)(NULL)(NULL) (NULL)"
930 [153][166]3)"(NULL)(NULL) (NULL)-right$peekpeek(NULL)spc((NULL)notnot(NULL)":[151]sn[170]4,0
940 [129]de[178]1 [164]500:[130]:[129]cl[178]1704[164]1903:[151]cl,32:[130]
950 [153][166]3)"onstop*pos getnotnewnew(NULL)= (NULL)notsqrspc(cont":[129]de[178]1[164]1000:[130]
960 [151]v,0:[151]v[170]1,0:[151]v[170]31,0:[137]200
970 [151]v[170]21,0
980 [153]"loadstopthank you!!":[153]:[153]"your knowledge and marksmanship";
990 [153]" have savedstop":[153]:[153]ca$(p):[153]:[153]"the capital ofstop"
1000 [153]:[153] co$(p):[153]""
1010 [153]"hit any key to continue":[141]660:ss[178]ss[170]1:[142]
1020 [151]53280,10:[151]53281,10
1030 [153]"loadstop"[166]12)"(NULL)tab(tab( (NULL)tab(tab( fn then (NULL)(NULL)":[153][166]12)"(NULL)to fn fn then fnthen"
1040 [153][166]14)"(NULL) fn fn then fnthen":[153][166]12)"toto(NULL) (NULL)toto (NULL)to(NULL) (NULL)(NULL)"
1050 [153]" the enemy is launching scud missiles at national capitals";
1060 [153]" in the americas. your job is to get to the capital under attack";
1070 [153]" and destroy the missiles. use a joystick in port two,";
1080 [153]" but be careful theequipment in different cities does not ";
1090 [153]" always respond with the same speed.":[141]900:[142]
1100 [151]sn[170]4,129:[151]sn[170]5,92:[151]sn[170]1,1:[151]sn,100:[129]f[178]1[164]999:[130]:[151]sn[170]4,0
1110 [142]
1120 [151]sn[170]14,5:[151]sn[170]18,16:[151]sn[170]3,1:[151]sn[170]6,240:[151]sn[170]4,65
1130 [151]sn,240:[151]sn[170]1,20:[151]v[170]30,0:[142]
1140 [153]"loadyou saved "ss" out of the "p
1150 [153]:[153]"cities that were attacked"
1160 [153]"would you like to try again (y/n)":[141]660
1170 [139] b$[178]"n"[167] [128]
1180 [139]b$[178]"y"[167] [138] 40
1190 [137]1140
1200 [131]antigua & barbuda,st. johns,bahamas,nassau,belize,belmopan
1210 [131]canada,ottawa,costa rica,san jose,cuba,havana,dominica,roseau
1220 [131]dominican republic,santo domingo,el salvador,san salvador,grenada
1230 [131]st. george's,guatemala,guatemala,haiti,port-au-prince,honduras
1240 [131]tegucigalpa,jamaica,kingston,mexico,mexico city,nicaragua,managua
1250 [131]panama,panama city,saint lucia,castries,saint vincent & the grenadines
1260 [131]kingstown,trinidad & tobago,port of spain,united states,washington d.c.
1270 [131]argentina,buenos aires,bolivia,la paz,brazil,brasilia,chile,santiago
1280 [131]colombia,bogota,ecuador,quito,guyana,georgetown,paraguay,asuncion
1290 [131]peru,lima,suriname,paramaribo,uruguay,montivideo,venezuela,caracas
1300 [131]barbados,bridgetown,st. kitts & nevis,basseterre
1310 [131]000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
1320 [131]001,000,000,003,000,000,007,000,024,015,000,104,127,000,143,255,000
1330 [131]143,255,000,104,127,000,024,015,000,000,007,000,000,003,000,000,001
1340 [131]000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
1350 [131]000,000,000,000,000,000,000,000,000,000,000,000,000,000,004,000,000
1360 [131]006,000,000,007,000,000,007,128,000,007,192,000,007,224,000,007,240
1370 [131]000,007,248,000