forked from ekidney/stardrifter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame2.bas
608 lines (447 loc) · 17.4 KB
/
game2.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
100clr:poke36878,10:poke36879,10:print"loading data"
!- (pn)planet name (d)ay c)olonists (h)ab (l)food (lc)launch count (ox)ygen (fu)el production (fl)fuel
!-(w)ater (p)ower (s)ci-labs (r)overs (m)aterials (te)ch(micros) dr(o)nes
!- sol(a)r (b)atteries (g)ardens (f)orge sabat(i)er or(e) (mm)ars mapped (np)newplanet (sd)spaceship direction (rc)chances of discovery
101pn=0:S=3:R=1:M=34:te=12:O=3:A=0:B=0:G=10:F=4:I=5:e=2:D=0:lc=0:X=rnd(-TI):ox=50:fu=50:fl=1000:np=0:sd=0:mr=189:rc=0.005:sr=0
102gosub12000
103gosub11200:gosub9200
104goto817
!-return from exploring check which scene and go there
110ifxp=1orxc=1thenreturn
120onscgoto2002,2005,2105,2220,2220
!- clearing screen and (commentedout) playing sound
817print"{clear}"
!-820forT=210to254
!-830poke36874,T
!-850forD=1to2
!-860nextD:nextT
!-870poke36878,0
!-880poke36874,0
TODO align with planet descriptions
1002gosub11300
!-SET FOR DIFFICULTY hab rate, food rate, water, powerloss rate
!-h - health
!-hr - health depletion rate
!-pl - % hab power use
!-ox - % oxygen amount
!-pz=pz-abs(ps):h=h-abs(hr):w=w-abs(wr):l=l-abs(lr)
1006hr=.05:lr=.05:wr=.05:ps=0.05
!-pl = hab power / ps = food power / pu = water power / q=daytime / mt=maxtime / la=launchbool?
!-pw=power state /
1010pl=25:iupu=50:sc=2:uc=200:q=0:mt=10:la=1:pw=1
!-n$ = newsfeed
1015n$(0)="welcome to":n$(1)="planet "+pl$:n$(2)="stardrifter":POKE 198,0
1025gosub2002
!-update loop 121E(4638)
!-sys4609 updating and rendering guages
!-1030 gosub4000
!-1035 pn=pn+1:lt=6
!-1040 gosub 4025
!-1045 goto1030
1050POKE 198,0:kc$="":sys(4609)
1058nb$=n$(0)
!-
!-?"{home}{space*20}{left*20}";peek(50);peek(49);peek(52);peek(51)
!-buffer vitals = power/water/food/habitat
1065gosub1125:sys(4609)
!-process changes
1070gosub2500:sys(4609)
!-BG tasks
1080gosub2600
!-update vital graph if changed
1081gosub1110
!-check if a key has been pressed
toDOneededprint
!- 1082 rem ifkb<>peek(197)thengosub1090
!-check if there's a new message, if so go and display it, key check, loop update
1085gosub1090
1086goto1050
toDOdotheyneedtobefunctionsprint
!-update functions: if key was pressed, goto input / if vitals changed then update / buffer vitals
1090getkc$:ifkc$<>""then?"{home}";kc$:poke36878,15:poke36876,230:poke36876,0:gosub2260
1100return
1110ifint(p)<>qporint(h)<>qhorint(w)<>qworint(l)<>qlthengosub2150
1115ifsc=4thenprint"{home}{down*3}{right*5}";int(fl)
1120return
1125qp=int(p):qh=int(h):qw=int(w):ql=int(l):return
!-update news
toDOmakesureoktoremove
1130goto2000
!-2.activities menu
2000n$(0)="we await your":n$(1)="instructions":n$(2)="stardrifter..."
2002sc=2
2004?"{clear}";:gosub2005:goto2093
2005print"{home}{white}{126}-------------------->";
2010print"/ /";
2020print"/ /";
2030print"/ /";
2040print"{127}------------------{125}-?";
2050print" ";chr$(al(pt(1)+9))+chr$(34+pt(0));
2060print"{down}{left}";chr$(al(pt(2)+9))+chr$(192+pt(1));
2070print"{down}{left}";chr$(202+pt(2));
2080sh=int(pt(3)/2)
2090print"{down}{left*2}";chr$(al(pt(0)+9))+chr$(162+sh)+chr$(211+int((pt(0)+pt(1))/2))+chr$(168+sh)
2091print"{white}{home}{down}{right}";n$(0);"{home}{down*2}{right}";n$(1)
2092print"{home}{down*3}{right}";n$(2):forxx=0to2:n$(xx)=" ":nextxx:return
2093print"{home}{white}{down*7}{blue}p{white}rocessing{141}{blue}h{white}arvest food{141}";
2094print"{blue}l{white}aunch{141}{blue}b{white}uild{141}{blue}d{white}ivert power{141}";
2095print"{blue}i{white}nventory{141}{blue}c{white}apture{141}{blue}r{white}epair habitat{141}{blue}e{white}xplore"
2099gosub2130:return
!-/3. build menu
2100sc=3
2105print"{clear} resin";tab(15);"{178}";m;"{141} tech";tab(15);"{177}";te;"{141}"
2106print" {purple}cost";tab(15);"{178} {177}"
2107forzx=0to8:print"{white}{141}";zx+1;" ";b$(zx+40);tab(14);"{purple}"b%(zx*2);tab(18);b%((zx*2)+1)"{white}";
2110nextzx
2115print"{141}"
!-display guages tags
2130print"{home}{down*19}{yellow}habi{141}{green}food{141}{blue}water{141}{cyan}power";
2140return
!-have a look in vitals, kill player if level is below 3 decimal (<1%)
2150ifpeek(4634)<3orpeek(4635)<3orpeek(4636)<3orpeek(4637)<3thengosub11000
!-keep vitals from moving over 100%
2151ifp>100thenp=100
2152ifh>100thenh=100
2153ifl>100thenl=100
2154ifw>100thenw=100
!-keep vitals from going into negative
2164ifp<0thenp=0
2174ifh<0thenh=0
2180ifl<0thenl=0
2182ifw<0thenw=0
!-convert vitals to decimal and store in memory addresses determined by asm routines
2185kc=peek(197):poke4638,int(h/100*255):poke4639,int(l/100*255):poke4640,int(w/100*255):poke4641,int(p/100*255)
2190kc=peek(197):sys(4609):return
!-4. power menu
2210sc=4
2215print"{clear}{141}{yellow}@@@@@{white}power plant{yellow}@@@@@@{141}";"{white}fuel: tons{141}{141}assign power:{141}{141} 1.ship fuel:{yellow}":printfu;"percent power{141}{141}{white} 2.habitat:{yellow}":printox;"percent power"
2216print"{141}{white}press space to change{141} power state"
2217print"{141}{yellow}@@@@@@@@@@@@@@@@@@@@@@{white}"
2218gosub2130
2219return
!- 5. inventory
2220sc=5:print"{clear}{141} resin";tab(16);"{178}";m;"{141} tech";tab(16);"{177}";te;"{141}"
2230forx=0to8:printb$(40+x);tab(16);ws(x*4):nextx:?"carbon";e;"tons"
2240gosub2130:return
!- intepret input
!- first combine sc number and input into a string for checking
2260a$=str$(sc)+kc$
2270ifsc=6thengosub4020:ifnp=1thennp=0:gosub11300:sd=1:gosub9200:gosub2000
2280ifa$=" 1a"thengosub2000
2282ifa$=" 2c"thengosub3000
2285ifa$=" 2r"thengosub3300
2288ifa$=" 2p"thengosub3600
2290ifa$=" 2h"thengosub3700
2300ifa$=" 2l"thengosub4000
2310ifa$=" 2b"thengosub2100
2320ifa$=" 2d"thengosub2210
2328ifa$=" 2e"thengosub4200
2338ifa$=" 31"thenbm=0:gosub5000
2348ifa$=" 32"thenbm=1:gosub5000
2358ifa$=" 33"thenbm=2:gosub5000
2364ifa$=" 34"thenbm=3:gosub5000
2367ifa$=" 35"thenbm=4:gosub5000
2368ifa$=" 36"thenbm=5:gosub5000
2370ifa$=" 37"thenbm=6:gosub5000
2380ifa$=" 38"thenbm=7:gosub5000
2390ifa$=" 39"thenbm=8:gosub5000
2395ifa$=" 4 "thengosub5500
2400ifkc$="a"andsc<>2thengosub2091:n$(0)="the "+pl$+"onians":n$(1)="are here to help":n$(2)="the stardrifter":gosub2002
2410ifkc$="i"thengosub2220
2490return
!- ****************process changes***************************
2500q=q+1:ifq>mtthengosub2544
!- check keybuffer
2522kc=peek(197)
!- deplete vitals based on depletion rates. play with this for balanced gameplay
2526 p=p-abs(ps):h=h-abs(hr):w=w-abs(wr):l=l-abs(lr)
!- old: p=(p-(ps/50)):h=h-abs(hr*(pl/(250-ox))):w=w-abs(wr*(pu/250)):l=l-abs(lr*(ps/250)):kc=peek(197)
!- Check fuel production
2527fl=fl+(fu/400)
2534iffl>500andla=0thenla=1:gosub2091:n$(0)="enough fuel for":n$(1)="launch has been":n$(2)="manufactured":gosub2091
2540return
!- add a day, warn user of low vitals.
2544d=d+1:q=0:p=p+int((a+b)*0.001)
2552ifh<10orl<10orw<10orp<10thenvn=1:?"{home}{down*18}{red}vitals low{white}"
2556ifvn=1andh>10andl>10andw>10andp>10thenvn=0:?"{home}{down*18} "
2560return
!-
!- process background activity i.e building things
!-
!- cycle through all items to check progress - 8 sets of 4 paramters
2600forj=0to7:xq=j*4
!- if item is building, remove time left, check if items are finished
2620ifws(xq+3)=1thenws(xq+2)=(ws(xq+2))-1:gosub2700
2625kc=peek(197)
2630nextj
2640return
2700ifws(xq+2)=0andws(xq+3)=1thenws(xq)=ws(xq)+1:ws(xq+3)=0:gosub2800
2710return
2800gosub2091:n$(0)="a "+b$(40+j):n$(1)="has finished":n$(2)="construction":gosub4100:gosub5034:gosub120
2810return
!- **********************************************************
!- mine
3000gosub2091:ifr<2thenn$(0)="2 rovers needed":goto3018
3010q=q+10:w=w-2:p=p-5:x=int(rnd(1)*6):sr=sr+(x*10)
3012ifrnd(1)<0.5thene=e+x:n$(0)=str$(x)+"t c captured":gosub4100:goto3018
3015n$(0)=str$(x)+"t h20 capture":gosub4100:w=w+(x*10)
3018gosub2091:gosub5300:gosub2000
3020return
!- repair
3300q=q+20:w=w-2:p=p-5:x=int(rnd(1)*10):h=h+x:ifh>100thenh=100
3310gosub2091
3320n$(0)=str$(x)+" percent":n$(1)="of hab repaired":gosub4100
3325gosub2091
3330return
!- process ore
3600gosub2091
3605ife<1thenn$(0)="no c to process":gosub2091:return
3610q=q+10:w=w-3:p=p-5:x=int(e/2):e=0:m=m+x
3620n$(0)=str$(x)+"x new resin":gosub4100
3625gosub2091
3635return
!- harvest
3700gosub2091:q=q+10:w=w-5:x=int(rnd(1)*10):l=l+x
3715n$(0)=str$(x)+" x food":n$(1)="harvested":gosub4100
3718gosub2091
3720return
!- launch (scene 6)
4000iffl<500thengosub2091:n$(0)="launch inactive":n$(1)="at least 500 tons of":n$(2)="fuel is required.":gosub2091:gosub5300:return
4005sc=6:print"{clear}launch systems active"
4010print"{141}fuel:";int(fl);" tons{141}within range{141}{141} planet";tab(15);"{blue}w {green}e {cyan}r{white}"
!- buffer current planet stats - current planet name, stats, ID -- MIGHT NOT NEED
4012pb$=pl$:forx=0to3:pb(x)=pt(x):next:cpn=pn
!- calc in range systems based on fuel **need to set MAX FUEL DEPOTS
4014iz=int((fl-500)/200)+1:ii=0:fc=fa:fd=fb
4016fory=(cpn+1)to(iz+cpn):ii=ii+1:gosub11200:printii;tab(4);pl$;tab(14);"{blue}"pt(0)"{left}{green}"pt(1)"{left}{cyan}"pt(3)"{white}":next
4019print"{141}select to launch":pl$=pb$:forx=0to3:pt(x)=pb(x):next:pn=cpn:fa=fc:fb=fd:gosub2130:return
!- launch selection
4020lt=asc(kc$)-48:iflt>iithen return
4022n$(0)="the "+pl$+"onians":n$(1)="bid farewell to":n$(2)="the stardrifter":?"{clear}":x=1000:gosub4100:gosub2005
4025fory=(cpn+1)to(cpn+lt):gosub11200:next
4030?"+1000 journey bonus":?"score:";sc:gosub5300
4050np=1:return
!- add score
4100sr=sr+(x*10):return
!- explore (buffer MaxTime, )
4200tt=mt:mt=20:xp=0:xc=1:fx=1:sx=15
!- start wind
4202poke36878,10:poke36877,180
!-draw screen
4210print"{clear}{yellow}@@@@@@@exploring@@@@@@planet ";pl$;"{141}";
4213gosub4900
4215?mm;"percent mapped{141}";:gosub4900
4223?"{141}{141}{141}{141}{141} {175}{176} {141}{141}":gosub4900:?"{blue}d{white}eploy drone{141}{blue}r{white}eturn to base"
4224gosub4900:gosub2130
4225b=peek(197)
4228gosub1125
4230gosub2500
4236gosub4500:rem do sfx
4237ifmm>99thenmm=100
4238ifxp=1thenxp=0:goto4202
4240ifrnd(1)<rcthengosub4310:?"{home}":gosub 2005:gosub5300:goto4210
4250geta$
4252ifa$="d"thenn$(0)="drone deployed":rc=rc+0.01:gosub 2005:gosub5300:goto4210
4255ifa$="r"thenmt=tt:poke36877,0:xp=0:xc=0:n$(0)="welcome back":n$(1)="stardrifter":gosub2002:return
4265gosub1110
!- mountain range animation
4270ifmr=160thenmr=191:goto4290
4272ifmr=191andrnd(1)<0.6thenmr=190:goto4290
4273ifmr=191thenmr=189:goto4290
4275ifmr=190thenmr=160:goto4290
4280ifmr=189thenmr=190
4290ln$=mid$(ln$,2,21)
4295ln$=ln$+chr$(mr)
4297?"{home}{down}{down}{down}{down}{down}{down}{down}{141}{red}";:?ln$;"{141}{141}{141}";
4300goto4225
!- rewards
4310 mm=mm+1
4311 x=rnd(1)*3:gosub4100
4312 if x<1 then n$(0)="we have found a"
4313 if x<2 then n$(0)="and here there are"
4314 if x<3 then n$(0)="behold there is a"
4316 n$(0)="we chanced upon a"
4318 x=int(rnd(1)*19):y=int(rnd(1)*19)+20:z=int(2*rnd(1))+1
4319 n$(1)=b$(x)+" "+b$(y):x$=str$(z)
4320 if x<4 then n$(2)=x$+" power lost":p=p-z:return
4330 if x<7 then n$(2)=x$+" water added":w=w+z:return
4340 if x<12 then n$(2)=x$+" fuel added":fl=fl+z:return
4350 if x<15 then n$(2)=x$+" power added":p=p+z:return
4360 if x<16 then n$(2)=x$+" resin added":m=m+z:return
4370 if x<18 then n$(2)=x$+" tech added":te=te+z:return
4375 n$(2)=x$+" food added":l=l+z:return
4500iffx=0thensx=sx+1
4510iffx=1thensx=sx-1
4520ifsx=13andfx=0thenfx=1
4530ifsx=4andfx=1thenfx=0
4540poke36878,sx
4550return
4900?"{yellow}@@@@@@@@@@@@@@@@@@@@@@{white}";:return
!- building (bm= item to build)
5000mc=b%(bm*2):tc=b%((bm*2)+1)
5018ifws((bm*4)+3)=1thenn$(0)="in progress":goto5034
5020ifmc>mandtc>tthenn$(0)="under resourced"
5025ifmc>mthenn$(0)="need more mat."
5028iftc>tethenn$(0)="need more tech"
!- if enough resources, then build
5029ifmc<=mandtc<=tethengosub5040:return
5034gosub2005:gosub5300:gosub2100:return
5040n$(0)="building "+b$(40+bm)+str$(bm):m=m-mc:te=te-tc:gosub5034
!- go to experimental building
5051gosub5200
!- build the thing
5052onbm+1gosub5070,5080,5090,5100,5110,5120,5130,5140,5150
5060return
5070o=o+1:return
5080r=r+1:return
5090a=a+1:return
5100b=b+1:return
5110g=g+1:return
5120f=f+1:return
5130i=i+1:return
5140te=te+1:return
5150H=H+20:return
5200ws((bm*4)+1)=ws((bm*4)+1)+1
5205ws((bm*4)+3)=1
!- timeTaken 20 for all objects (temp)
5210ws((bm*4)+2)=20
5220return
!- pause for text
5300poke36879,9:forxx=0to4000:nextxx:poke36879,10:return
!- divert power
5500pw=pw+1
5520ifpw>5thenpw=1
5530ifpw=1thenfu=100:ox=0:hr=0.001
5540ifpw=2thenfu=75:ox=25:hr=0.0012
5550ifpw=3thenfu=25:ox=75:hr=0.0013
5560ifpw=4thenfu=0:ox=100:hr=0.0015
5562ifpw=5thenfu=0:ox=0:hr=0.001
5565gosub2210
5570return
!- when bad things happen play sound, display news, shake screen
!-6000print"{clear}"
!-6060forxx=15to0step-1
!-6070gosub6130:print"{red}"n$(0)
!-6080next
!-6090poke36865,38:poke36864,12:poke36878,0
!-6100poke36874,0:poke36875,0:poke36877,0
!-6105poke36879,10:formx=0to1000:next
!-6110gosub120:return
!-6130poke36878,xx:poke36877,200+xx*rnd(1)
!-6140poke36874,129:poke36875,190+xx
!-6150poke36865,38+4*(4*rnd(l)-2)
!-6160poke36864,12+2*(2*rnd(l)-2)
!-6170ifxx=15thenpoke36879,112:formx=0to100:next
!-6180poke36879,27
!-6190return
!- when GOOD things happen play sound, show news
!-7000print"{clear}"
!-7015print"{white}"n$(0)
!-7020poke36878,15
!-7030forfx=4to0step-1:poke36878,fx
!-7040forfy=1to100:next
!-7050forfz=220to240:poke36876,fz:next:next
!-7060poke36876,0
!-7070poke36878,0
!-7100return
!- landing
9200print"{clear}{down}{down} {white}."
9210print" ."
9220print"{down} ."
9230print" ."
9240print"."
9260print" . ."
9270print" ."
9280print"{down}{down}{down}{down}{down}{down}{down}"
9300print"{red}{191}{190} {191}{190} {191}{189}{190}{191}{190}{191}{189}{190}{191}{190}{191}{190} {191}{189}";
9310poke36878,10:poke36877,180
9320print"{home}{white}"tab(5);
9330ifsd=1thengosub9535:return
!- down
9335forxx=1to17
9340forx=0to3
9350printchr$(al(x));"{left}";"{down}";chr$(al(4+x));"{left}{up}";
9370fora=0to100:nexta
9380nextx
9390print"{up} {down}{left} {down}{left}";
9400nextxx:printchr$(91);
9410poke36878,0:poke36877,0
9420return
!- up
9535?"{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}";
9537forxx=1to17
9540forx=3to0step-1
9550printchr$(al(x));"{left}{down}";chr$(al(4+x));"{left}{up}";
9560z=xx*(x+1):z=cos({pi}+((z*{pi})/136))
9570fora=0toint(z*-200):nexta
9580nextx
9590print"{down} {up}{up}{left}";
9600nextxx:printchr$(91);
9610poke36878,0:poke36877,0
9620sd=0:return
!- end state
11000poke36877,0:?"{clear}"
11005ifp<1thenx$="power"
11006ifw<1thenx$="water"
11007ifl<1thenx$="food"
11008ifh<1thenx$="habitat"
11009n$(0)="without "+x$:n$(1)="the stardrifter":n$(2)="journey ended."
11010gosub2005
11015print"{home}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}score:";sr;"{141}hit a key to try again"
11020a=peek(197)
11025ifpeek(197)<>athenclr:gosub12000:goto100
11028forx=0to3:poke4634+x,128:next
11030goto11025
!- build planet name
11161pl$=""
11162forx=0to(int((pt(0)+pt(1)+pt(2))/9))
11172pl$=pl$+mid$(di$,pt(x)*7+pt(x+1)+1,2)
11176next
11180return
!- increase planet +1
!- inc planet ID numbers +1 using fib sequence
11200pn=pn+1
11205forz=0to3
11210fi=fa+fb
11215iffi>99999thenfi=fi-99998
11223num=fi-int(fi/10)*10
11230pt(z)=num
11250fa=fb:fb=fi
11257next
11260gosub11161
11280return
!- set up new planet stats
11300H=(pt(0)*5)+50:L=(pt(1)*5)+50:W=(pt(2)*5)+50:p=(pt(3)*5)+50:mm=1
11310 return
12000rem this was where we poked in char&asm
!- we no longer need char and asm code so now initialize variables
!- fibonacci sequence
12002fa=0:fb=1:pn=1:dimpb(3)
!- strings: above first 20 are random event adjectives, next 20 are nounds, rest are buildable objects
12005data"mental","viral","piercing","fluxal","liquid","chemical","leachable","resonal","hypereal","gravity","plasma","pressure"
12008data"glittering","vibrating","sparkling","crystal","viscous","metal","gaseous","organic"
12010data"storm","hurricane","void","well","heap","construct","ruin","rift","wind","rip"
12015data"supplicant","solvent","powder","sand","regolith","mass","canyon","river","mountain","coast"
12020data"drone","rover","solar pnl","battery"
12030data"growspace","forge","sab plant","tech","habitat"
12040dimb$(49)
12060forx=0to48:readb$(x):nextx
!- ints below for each inventory item [(material cost, tech cost),(),.]
12080data2,1,1,5,5,1,1,1,1,2,0,0,0,2,1,0,30,3,0,2,1,0,1,1
12090dimb%(23)
12100forx=0to23:readb%(x):next
!- below for each buildable item [(number of, time remaining ,isBuilding?),(),.]
12120data3,0,0,0,0,0,0,0,23,0,0,0,32,0,0,0,10,0,0,0,4,0,0,0,5,0,0,0,12,0,0,0,2,0,0,0
12130dimws(35)
12140forx=0to35:readws(x):next
!- finish data entry
!-where the spaceship frames are & color codes
13005dimpt(4):dimal(18)
13007forx=0to17:readal(x):next
14280data91,92,93,94,32,95,60,33
14290data28,30,31,156,158,159,156,30,159,31
!- planet names string, mountain range
14300di$="abouseitiletstonlonuthnolexegezacebisousesarmaindireaeratenberalavetiedorquantisriono"
14400dimn$(3)
14410ln$="{191}{190} {191}{190} {191}{189}{190}{191}{190}{191}{189}{190}{191}{190}{191}{190} {191}{189}"
15000return