home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1986 November
/
Ahoy_Magazine_86-11_1986_Double_L.d64
/
Teleporter
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
7KB
|
190 lines
10 rem ***************************
15 rem * teleporter *
20 rem *by cleveland m. blakemore*
25 rem ***************************
30 poke53281,.:poke53280,12:dim a(63,2),s$(48)
35 vi=5:k=.:f=.:nb=.:nt=.:w=.:w$="":i$="":c$=i$:d$=i$:c=.:cl=.:sb=.:sc=.:l=.
40 x$="[144]":r$=""
45 x=rnd(-ti/37):plot=65520:print"[147] please wait...initializing game."
50 s$(.)="[155][146]&captain: ":s$(1)=" stand by ....."
55 s$(2)="prepare for ":s$(3)="krell":s$(4)="algon":s$(5)="beta iv":s$(6)="ceta
60 s$(7)[178]"alphan":s$(8)[178]"sol":s$(9)[178]"tirus":s$(10)[178]"ambassador":s$(11)[178]"trader
65 s$(12)="crewmember":s$(13)="pilot":s$(14)="engineer":s$(15)="inspector
70 s$(16)[178]"officer":s$(17)[178]"passing thru radiation storm"
75 s$(18)[178]" $%&# computer on the fritz !":s$(19)[178]"transmission garbled!"
80 s$(20)[178]"phony...":s$(21)[178]"we try to conserve energy here":s$(22)[178]"lunchtime
85 s$(23)="meteor belt-turbulence ahead":s$(24)="another alien freeloader."
90 s$(25)="you just fried the ":s$(26)="you're fired!get off my ship!"
95 s$(27)="good job."
100 forx=.to10:reada$:s$(28+x)=a$:next
105 forx=.to9:reada$:s$(39+x)=a$:next
110 forx=.to32:reada:poke679+x,a:next
115 poke56334,peek(56334)and254
120 poke1,peek(1)and251:sys679:poke1,peek(1)or4:poke56334,peek(56334)or1
125 reada:ifa=-1then135
130 forx=.to7:readd:poke61440+a*8+x,d:next:goto125
135 poke648,192:print"[147] welcome aboard the u.s.s. nefarius !"
140 poke56576,peek(56576)and252:poke53272,12:v=53248:pokev+21,.
145 d=49152:forx=.to319:reada:poked+20*64+x,a:next:pokev,92:pokev+1,208
150 pokev+8,240:pokev+9,210:pokev+23,27:pokev+43,14
155 pokev+27,23:pokev+28,12:pokev+29,27:forx=.to48:poked+25*64+x,255:next
160 forx=48to63:poked+25*64+x,.:next
165 forx=.to63:poked+26*64+x,255:next
170 pokev+4,250:pokev+5,216:poked+1016,20:poked+1017,26:poked+1018,24
175 poked+1019,24:pokev+6,159:pokev+7,133:pokev+39,11:pokev+40,peek(v+33)
180 a=780:x=781:y=782:p=783:pokev+2,159:gosub380
185 pokev+3,133:s=54272:forsc=stos+24:pokesc,.:next
190 gosub510:prints$(.);
195 pokes+1,34:pokes,10:pokes+5,129:pokes+6,129:pokes+24,10:pokes+4,129
200 pokev+21,27:forsc=26to255:poked+1016,sc:poked+1020,sc:next:gosub550
205 poked+1020,25:poked+1016,20:pokes+4,.:gosub510:printtab(9)s$(1);
210 f=.:gosub640:r%=22+rnd(0)*3:ifrnd(1)>.5thenf=1
215 nb=int(rnd(1)*45+50):nt=int(rnd(1)*30+65)
220 nb=nb+int(rnd(1)*10)/10:nt=nt+int(rnd(1)*10)/10:poked+1018,r%
225 poked+1019,r%:iffandrnd(1)*7>lthenpoked+1019,22+int(rnd(0)*3)
230 gosub550
235 n$=s$(3+(rnd(1)*7)):t$=s$(10+(rnd(1)*7)):n$=n$+chr$(32)+t$
240 gosub510:printtab(9);chr$(18);s$(2);n$;chr$(19):gosub550
245 pokex,20:pokey,16:pokep,.:sysplot:printi$;mid$(str$(nb)+".0",2,4);
250 pokex,22:pokey,16:pokep,.:sysplot:printmid$(str$(nt)+".0",2,4);
255 poked+1016,21:pokev+37,rnd(0)*10:pokev+38,rnd(0)*10:pokev+41,rnd(0)*10
260 pokev+42,peek(v+41):iffandrnd(1)*12>lthenpokev+42,rnd(0)*10
265 pokev+21,peek(v+21)or4
270 w=int(rnd(0)*5)*2:w$=s$(39+w)
275 pokex,20:pokey,23:pokep,.:sysplot:printw$;:gosub550
280 gosub640:ifl>12thengosub565
285 gosub550:forsc=stos+24:pokesc,.:next:pokes,.:pokes+5,8
290 pokes+6,123:pokes+24,15:pokes+4,21:sc=133
295 forir=.to1:f1=peek(v+3):pokes+15,f1*.1:pokes+1,f1*.01
300 ec=(int(rnd(1)*vi)+int(rnd(1)*8*f))*.1:vi=-vi
305 pokex,20:pokey,16:pokep,.:sysplot:printc$;mid$(str$(nb+ec)+".0",2,4);
310 print"[157][157][157][157]";mid$(str$(nt+ec)+".0",2,4);
315 ifsbthenpokev+22,(peek(v+22)and248)orrnd(1)*8
320 pokex,22:pokey,23:pokep,.:sysplot:printd$;s$(39.6+w+abs(ec)):next
325 poked+1016,21.5-abs(ec)-(rnd(1)*.1)
330 ifpeek(56321)=239then615
335 sc=sc-1:pokev+3,sc:ifsc>90then295
340 pokev+22,(peek(v+22)and248):pokes+4,.
345 gosub510:prints$(.);:gosub510
350 iffthenprinttab(9)s$(24);:poked+1016,20:k=k+1:gosub640:gosub520:goto360
355 gosub550:printtab(9)s$(27);:poked+1016,21
360 l=l+1:gosub640:c$=i$:d$=i$:pokev+21,27:sb=.
365 ifl<21thengosub550:goto185
370 ifk>6thengosub510:prints$(.);:gosub510:printtab(9);s$(26);
375 goto650
380 print"[147]"tab(8)"[152][205][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][206]
385 [153][163]9)"(NULL) step teleporter (NULL)wait (NULL)
390 printtab(9)"[212][169][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][223][146][217]
395 [153][163]9)"(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)wait(NULL)
400 printtab(9)"[212] [212][163][163][163][163][163][163][163][163][163][163][146][217] [217]
405 [153][163]9)"(NULL) (NULL) (NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL) wait(NULL) (NULL)
410 printtab(9)"[212] [212] [215] [215] [146][217] [217]
415 [153][163]9)"(NULL) (NULL) (NULL) step(NULL) (NULL) wait(NULL) (NULL)
420 printtab(9)"[212] [212] [215] [169] [223] [215] [146][217] [217]
425 [153][163]9)"(NULL) (NULL) (NULL) (NULL) step (NULL) wait(NULL) (NULL)
430 printtab(9)"[212] [212] [215] [223][169] [215] [146][217] [217]
435 [153][163]9)"(NULL) (NULL) (NULL) (NULL) wait(NULL) (NULL)
440 printtab(9)"[212] [212] [215][215][215][215][215][215][215][215] [146][217] [217]
445 [153][163]9)"(NULL) (NULL) tototototototototowait(NULL) (NULL)
450 printtab(8)"[206][183][183][183][169][206] [206][207][183][183][183][183][183][183][208][205] [205][223][146][183][183][183][205]
455 [153][163]7)"(NULL) step(NULL)to(NULL)waitstep (NULL)(NULL)to(NULL)(NULL)wait (NULL)
460 printtab(6)"[206] [169][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][223][146] [205]
465 [153][163]5)"(NULL) (NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)wait (NULL)
470 printtab(4)"[206]"spc(30)"[205]"
475 printtab(3)"[206] [169][165][176]helm[195][178][195][195][195][195][195][178][195][195][195][195][195][178]image[195][167][223][146] [205]
480 [153][163]2)"(NULL) step(NULL)fnpeekwait peekprintbwaitprint# peekprintr_waitprint# peekwait then(NULL)(NULL)wait (NULL)
485 print" [206] [169][209] [165][194][146] [194][153] [146][152] [194][153] [146][152] [194][146] [167] [209][223][146] [205]
490 [153]"(NULL) step(NULL) fnpeekwait peekprinttwaitprint# peekprintw_waitprint# peekwait then (NULL)(NULL)wait (NULL)";
495 [153]" step(NULL) fnpeekwait peekprint waitprint# peekprint waitprint# peekwait then (NULL)(NULL)wait ";s$(0);
500 [153][199](157);[199](148);[199](32);[199](19);:[142]
505 [143] set cursor
510 [151]p,.:[151]y,.:[151]x,24:[158]plot:[142]
515 [143] abort/fry alien
520 [129]sc[178]s[164]s[170]24:[151]sc,.:[130]:[151]s[170]1,10:[151]s[170]5,75:[151]s[170]6,30:[151]s,25
525 [151]s[170]24,15:[151]s[170]4,23:[151]v[170]3,90
530 [141]510:[153]s$(.);:[141]510:[153][163]9)"list(NULL) (NULL) (NULL) (NULL) (NULL) abort ! (NULL) (NULL) (NULL) (NULL)";
535 [129]sc[178].[164]64:[153][199](14);:[151]v[170]33,sc:[153][199](142);:[151]s[170]15,sc:[130]
540 [151]v[170]3,133:[151]s[170]4,.:[141]550:[141]640:[141]510:[153]s$(.);:[142]
545 [143] beep
550 [129]sc[178]s[164]s[170]24:[151]sc,.:[130]:[151]s[170]24,15
555 [151]s[170]1,25:[151]s,5:[151]s[170]5,20:[151]s[170]6,20:[151]s[170]4,33:[129]sc[178].[164]75:[130]
560 [151]s[170]4,.:[142]
565 [141]510:[153]s$(.);:[141]510:[153][163]9);
570 [145]l[171]12[141]580,605,580,585,590,595,600,605
575 [141]640:[141]510:[153]s$(.);:[142]
580 c$[178]x$:[153]s$(18);:[142]
585 [151]v[170]21,30:[153]s$(22);:[142]
590 d$[178]x$:sb[178]1:[153]s$(17);:[142]
595 [151]d[170]1018,[187](0)[172]3[170]22:[153]s$(19);:[142]
600 c$[178]x$:d$[178]x$:[153]s$(21);:[142]
605 sb[178]1:d$[178]x$:[153]s$(23);:[142]
610 [143] check for correct abort
615 [151]v[170]22,[194](v[170]22)[175]248
620 [141]520:[141]510:[139]f[167][153][163]9)s$(20);:[141]510:[137]355
625 [141]510:[153]s$(.);:[141]510:[153][163]9)s$(25);t$;"!";:k[178]k[170]1:[141]510
630 [151]d[170]1016,20:[141]640:[137]360
635 [143] delay
640 [129]sc[178].[164]3000:[130]:[142]
645 [143] rate performance
650 [141]550:[141]640:[141]550
655 [141]510:[153]s$(.);:[141]510:[153][163]9)r$;"ratinglenlen>";
660 [129]x[178].[164]10:[139]x[172]2[178]20[171]k[176]x[172]2[170]1[178]20[171]k[167][153]s$(28[170]x);:[141]550
665 [130]:[141]640:[141]640:[141]550
670 [151]648,4:[151]679,.:[158]679
675 [143] ratings
680 [131] raw recruit,space cadet,ensign,specialist,lieutenant,1st lieutenant
685 [131] captain,major,admiral,galactic whiz kid,regular ricky rocket
690 ren wave[129]m [131]
695 [131] $$$,%%%,%$$,$%$,*(*,(*(,)(),()(,$%%,%$$
700 [143] ml copydown routine
705 [131] 169,,133,251,133,253,169,208,133,252,169,240,133,254,162,8
710 [131] 160,,177,251,145,253,136,208,249,230,252,230,254,202,208,240,96
715 [143] character data
720 [131]036,000,004,010,017,160,064,000,000
725 [131]037,000,032,080,136,005,002,000,000
730 [131]038,239,199,147,147,131,131,147,187
735 [131]040,000,056,040,040,239,000,000,000
740 [131]041,000,000,000,000,251,010,010,014
745 [131]042,000,016,040,040,199,000,000,000,-1
750 [143] sprite data
755 [131]255,255,255,135,255,193,143,254
760 [131]225,143,252,097,132,000,065,133
765 [131]147,065,132,214,065,134,016,193
770 [131]132,040,065,132,000,065,186,124
775 [131]189,197,069,067,130,130,129,129
780 [131]125,033,128,130,113,128,124,113
785 [131]128,000,081,128,000,001,128,000
790 [131]001,128,000,001,255,255,255,060
795 [131]255,255,255,135,255,193,143,254
800 [131]225,143,252,097,132,000,065,132
805 [131]214,065,132,016,065,134,016,193
810 [131]132,040,065,132,130,065,186,068
815 [131]189,197,057,067,130,130,129,129
820 [131]125,033,128,130,113,128,124,113
825 [131]128,000,081,128,000,001,128,000
830 [131]001,128,000,001,255,255,255,060
835 [131]005,020,080,000,085,000,000,215
840 [131]000,000,125,000,000,020,000,001
845 [131]085,064,005,086,080,020,085,020
850 [131]080,085,005,064,150,001,064,170
855 [131]001,097,085,073,133,065,082,149
860 [131]000,086,020,000,020,020,000,020
865 [131]020,000,020,020,000,020,020,000
870 [131]020,028,000,052,252,000,063,044
875 [131]000,065,000,001,020,064,012,040
880 [131]048,000,020,000,000,065,000,000
885 [131]020,000,000,020,000,001,085,064
890 [131]004,020,016,144,020,006,032,085
895 [131]008,129,020,066,004,020,016,004
900 [131]150,016,036,020,024,008,085,032
905 [131]032,085,008,001,215,064,005,085
910 [131]080,006,065,144,020,000,020,044
915 [131]000,000,000,001,065,064,007,215
920 [131]208,007,150,208,001,085,064,000
925 [131]105,000,000,020,000,001,150,064
930 [131]005,105,080,020,105,020,016,105
935 [131]004,016,150,004,016,020,004,020
940 [131]020,020,016,020,004,004,085,016
945 [131]000,085,000,001,065,064,005,000
950 [131]080,005,000,080,021,000,084,044