home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 189
/
189.d81
/
gt1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
32KB
|
1,111 lines
20 print"[147]":dv=peek(186)
52 open1,dv,1,"g1s3":poke780,0:sys65493:close1
100 sa=35072:ea=35072+999:ns=50176:gosub5000:rem sc1
101 poke53248,84:poke53249,101:poke53280,0:poke53281,0:poke775,0
102 sa=36072:ea=36072+999:ns=55296:gosub5000:rem sc1.cl
103 print"[145][145][145][145][145][145][145][145]"
104 v=53248:pokev+21,1:a3=1:a4=55691:xx=84:yy=101:b1=0:gx=1:sr=3
105 b7=1:poke55328,1:poke55329,1:poke55368,1:poke55369,1:b8=1:rematstat
106 forp=55567to55575:pokep,3:next:d2=55575:rem fuel
107 poke55487,2:d5=55487:remspd
108 ifq2=0thengl=1000:j1=12:j5=6:j7=4:k1=80
109 ifq2=0thenl1=4:l2=0:l3=12:l4=0:l5=30:l6=0:l8=0:j9=0
110 ifq2=0thenm1=0:m3=0:m4=0:m9=0:n6=0:n8=0:j9=0:gs=0:gc=0:gf=0:gw=0:gr=0:gt=0
111 ifq2=1thenq2=0:rem*aftgamovr
119 rem
120 goto250
121 js=peek(56320):kb=peek(197)
122 if js=126orkb=33then130
124 if js=125orkb=37then140
125 ifjs=111orkb=60then300
128 ifb1<>0thengoto900
129 goto121
130 if a1=55887then121
132 pokea1,8:a1=a1-80:pokea1,1:fork=1to200:next:goto121
140 if a1=56207then121
142 pokea1,8:a1=a1+80:pokea1,1:fork=1to200:next:goto121
145 rem*steer
146 poke55887,8:a4=55691:pokea4,1
148 gosub1050
150 rem
151 a3=1
152 js=peek(56320):kb=peek(197)
153 if js=123orkb=34then160
154 if js=119orkb=42then170
155 ifjs=111orkb=60then200:remfb
158 goto152
160 a3=a3-1:ifa3=0thena3=8
162 goto190
170 a3=a3+1:ifa3=9thena3=1
180 ifa3=2thenpokea4,12:a4=55693:goto198
181 ifa3=3thenpokea4,12:a4=55733:goto198
182 ifa3=4thenpokea4,12:a4=55773:goto198
183 ifa3=5thenpokea4,12:a4=55771:goto198
184 ifa3=6thenpokea4,12:a4=55769:goto198
185 ifa3=7thenpokea4,12:a4=55729:goto198
186 ifa3=8thenpokea4,12:a4=55689:goto198
187 ifa3=1thenpokea4,12:a4=55691:goto198
190 ifa3=8thenpokea4,12:a4=55689:goto198
191 ifa3=7thenpokea4,12:a4=55729:goto198
192 ifa3=6thenpokea4,12:a4=55769:goto198
193 ifa3=5thenpokea4,12:a4=55771:goto198
194 ifa3=4thenpokea4,12:a4=55773:goto198
195 ifa3=3thenpokea4,12:a4=55733:goto198
196 ifa3=2thenpokea4,12:a4=55693:goto198
197 ifa3=1thenpokea4,12:a4=55691:goto198
198 pokea4,1:fork=1to200:next:goto152
200 rem*exstr
217 pokea4,12
220 pokea4,1:fork=1to140:next:pokea4,12
222 fork=1to140:next:pokea4,1
224 fork=1to140:next:pokea4,12
226 fork=1to140:next:pokea4,1
228 fork=1to140:next:pokea4,12
240 a1=55887:pokea1,1
241 goto121
249 rem*mainscr
250 a1=55887:pokea1,1:poke53269,1
251 forp=55567tod2:pokep,3:next:remfl
252 poke55487,5:d5=55487:b1=0:remspd
253 gosub1050
260 goto121
299 rem*opt
300 ifa1=56207andb7=0then11700:remnoland
301 rem
302 ifa1=55967then500:remacc
305 ifa1=56047then550:remdec
310 ifa1=56127then400:remcomm
312 ifa1=56207andb7=1then1500:remland
316 ifa1=55887thengosub350:goto146:remsteer(flash)
349 rem*flsh
350 pokea1,8:fork=1to140:next:pokea1,1
352 fork=1to140:next:pokea1,8
354 fork=1to140:next:pokea1,1
356 fork=1to140:next:pokea1,8
358 fork=1to140:next:pokea1,1
360 return
400 gosub1050:rem*cmd
401 gosub1070
403 print"[147][152]";:poke53269,0:print"weaponry":print"[152]";
404 ifl1=4andl2=0thenprint"l6-15 slow laser gun"
405 ifl1=5andl2=0thenprint"ak-217 laser gun"
407 ifl1=4andl2=1thenprint"b-292 laser"
410 ifl1=5andl2=1thenprint"cx-4 laser"
412 rem
414 ifl3=12thenprint"standard shields - 12"
416 ifl3=16thenprint"detren shields - 16"
418 ifl3=20thenprint"ethlon shields - 20"
419 ifl6=0thenprint"standard missile bay (holds 4)"
420 ifl6=1thenprint"extended missile bay (holds 8)"
421 print"missiles ";:printj7
422 print:print"engineering":print"[152]";
423 ifl4=1thenprint"hyperspace jump drive -";
424 ifl4=1andl8=1thenprint" charged"
425 ifl4=1andl8=0thenprint" not charged"
426 ifl4=0thenprint"no hyperspace jump drive"
438 ifl5=45thenprint"fuel enhancement operational"
440 ifn6=1thenprint"cloaking device (disables k-oo4 radar)"
442 rem
443 rem
444 rem
445 print:print"[158]gold ";:printgl:print
446 ifm1=1thenprint"[159]telios needs medicine from selna"
447 ifm1=2 thenprint"[159]medical supplies for telios"
448 ifm3=1 thenprint"[159]passenger for jahl"
449 ifm3=2 thenprint"[159]kthargon trader's id"
450 ifm4=1thenprint"[159]desalination unit for hyloth"
451 ifm9=1thenprint"[159]academy agent is heading for gnarl !"
452 ifm9=2thenprint"[159]going to academy at hyloth."
453 ifn8=1thenprint"[159]request for 8 x computers for joall"
454 print:print"[155]n = navigation"
455 print"h = hyperspace"
456 print"c = cargo
458 [153]:[153]"space or fb = exit command centre"
460 js[178][194](56320):kb[178][194](197)
461 [139]js[178]111[176]kb[178]60[167]486
462 [139]kb[178]39[167]11800:[143]n
463 [139]kb[178]29[167]476:[143]h
464 [139]kb[178]20[167]11900:[143]c
466 [137]460
476 [139]l4[178]0[167][153]"loadyou need a hyperspace drive !":[141]1022:[137]403
477 [139]l8[178]1[167]488
478 [153]"load":[153]"openmsg from engineer: drive not charged !":[141]1022
479 [141]1022:[137]403
486 [141]1050:[141]1080:[143]getscr
487 [151]53269,1:[137]121
488 [153]"load":[153]"openyou are in system ";:[153]gx:[153]:[153]"you can jump to:"
489 [153]:[153]"list1 star system k-oo1"
490 [153]:[153]"2 star system k-oo2
491 print:print"3 star system k-oo3":print:print"4 star system k-oo4"
492 print:print"x = exit":print:print"choose 1-4 or x"
493 poke198,0:wait198,1:geths$
494 ifhs$="1"thengx=1:goto8200
495 ifhs$="2"thengx=2:goto8200
496 ifhs$="3"thengx=3:goto8200
497 ifhs$="4"thengx=4:goto8200
498 ifhs$="x"then403
499 goto493
500 rem*acc
502 ifb1=8then121
504 b1=b1+1:d5=d5+1:poked5,2:fork=1to80:next:b2=0:remadjspd+resetb2counter
540 goto121
550 rem*dec
552 ifb1=0then121
554 b1=b1-1:poked5,12:d5=d5-1:fork=1to80:next:b2=0
590 goto121
900 rem*move
901 goto1200:rem*spdcount
902 rem
903 goto121
905 ifd2=55567then9500:remnofuel
906 d1=d1+1:ifd1>(l5-b1)then1010:remfl*adjw/b1spd
909 ona3goto910,920,930,940,950,960,970,980
910 ifpeek(v+1)<53then4100
912 yy=yy-2
918 goto990
920 ifpeek(v)>250orpeek(v+1)<53then4100
922 xx=xx+2:yy=yy-2
928 goto990
930 ifpeek(v)>250then4100
932 xx=xx+2
938 goto990
940 ifpeek(v)>250orpeek(v+1)>245then4100
942 xx=xx+2:yy=yy+2
944 goto990
950 ifpeek(v+1)>245then4100
952 yy=yy+2
954 goto990
960 ifpeek(v)<22orpeek(v+1)>245then4100
962 xx=xx-2:yy=yy+2
970 ifpeek(v)<22then4100
972 xx=xx-2
978 goto990
980 ifpeek(v)<22orpeek(v+1)<53then4100
982 xx=xx-2:yy=yy-2
984 goto990
990 h1=0:pokev,xx:pokev+1,yy
992 b3=peek(53248)-12:b4=peek(53249)-45:rem*station
993 b3=int(b3/8):b4=int(b4/8)
994 b5=50176+(b3-1)+((b4-1)*40)
998 ifpeek(b5)=64thenb7=1:poke55328,1:poke55329,1:poke55368,1:poke55369,1:b8=1
999 ifpeek(b5)<>64thenb7=0
1000 ifb8=1andb7=0thenb8=0:poke55328,5:poke55329,5:poke55368,5:poke55369,5
1002 rem
1004 j9=j9+1:ifj9<>k1then1009:rem*combt
1006 poke55333,1:poke55334,1:poke55373,1:poke55374,1
1007 gosub1022:gosub1022:goto6000
1009 goto121
1010 d1=0:remfl
1012 poked2,12:d2=d2-1:goto909
1020 print"[147]":print" you can't afford it !"
1022 fork=1to1000:next:return
1030 print:print"you have ";:printgl;:print" cash";:return
1040 print:print"[159]ok ":fork=1to400:next:return
1050 js=peek(56320):kb=peek(197):ifjs=111orkb=60then1050
1052 return
1060 print"[147]":print"you have none !":gosub1022:return
1062 print:print:print"[155]press firebutton or spacebar...."
1063 js=peek(56320):kb=peek(197):ifjs=111orkb=60thenreturn
1064 goto1063
1070 sa=50176:ea=50176+999:ns=35072:gosub5000:remstrscr
1072 sa=55296:ea=55296+999:ns=36072:gosub5000:remstrcl
1074 return
1080 poke53265,peek(53265)and239
1081 sa=35072:ea=35072+999:ns=50176:gosub5000:rem getsc1
1082 sa=36072:ea=36072+999:ns=55296:gosub5000:rem getsc1.cl
1083 poke55887,1:poke55967,8:poke56047,8:poke56127,8:poke56207,8:a1=55887
1084 poke53265,peek(53265)or16:return
1090 open1,dv,1,f$:poke780,0:sys65493:close1:return
1200 b2=b2+1:ifb2=(10-b1)thenb2=0:goto905:remspd-10isfastest!
1202 goto903
1500 rem*land
1502 gosub1050:ifb1<>0then11600:rem*decl1st
1503 poke53269,0
1504 gosub1070
1510 print"[147]":poke53280,0:poke53281,0:c2=1:c3=1:c4=5:h2=0
1511 goto2500
1512 poke646,c2
1514 print"":print" [216][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][217][218]"
1516 fork=1to18:print" [184] [186]":next
1518 print" xyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyz";
1520 pr