home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 31
/
031.d81
/
e.s.p.
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
6KB
|
189 lines
3 poke53248+16,.
4 ag$=""
5 gosub 60100:poke650,128
6 poke53276,.
10 goto 100
20 poke54296,15:poke54276,.:poke54273,hf:poke54272,100
22 poke54277,10:poke54278,10:poke54276,33:return
30 for t=1 to 30:next:return
50 poke 781,ln:poke 782,col:poke 783,0:sys 65520:return
60 n=int(rnd(1)*25+1):if c(n)=0 then 60
70 deck=deck-1:return
100 :
104 print"[147][208]oking data into memory.":x=rnd(-ti):v=53248:s=54272
105 dim c(26),g(20):sprite=12288
110 for j=1 to 6:for i=0 to 63:read a:poke sprite+i,a:next:sp=sp+64:next
120 for i=1 to 5:poke v+i+39,1:poke 2040+i,191+i:next
125 poke 2046,197:poke v+45,7:pokev+39,2:pokev+23,1
130 poke v+29,1:poke v,156:poke v+1,102:game=1:h=90:fori=2to10step2
140 poke v+i,h:poke v+i+1,190:h=h+40:next:poke v+13,210
199 :
200 b1$="[152][160] [160][157][157][157][157][157][157][157][160][166][166][166][166][166][152][160][157][157][157][157][157][157][157]"
205 b1$=b1$+" [166][166][166][166][166][152][160][157][157][157][157][157][157][157][160][166][166][166][166][166][152][160][157][157][157][157][157][157][157]"
210 b1$=b1$+"[160][166][166][166][166][166][152][160][157][157][157][157][157][157][157][160][166][166][166][166][166][152][160][157][157][157][157][157][157][157][160] "
220 b2$=" [157][157][157][157][157][157][157] [160][160][160][160][160] [157][157][157][157][157][157][157] [160][160][160][160][160] [157][157][157][157][157][157][157] [160][160][160][160][160] [157][157][157][157][157][157][157]"
230 b2$=b2$+" [160][160][160][160][160] [157][157][157][157][157][157][157] [160][160][160][160][160] [157][157][157][157][157][157][157] "
240 t$(0)=" [146] [169] [223][146] [223]"
250 t$(1)=" [146] [146] [146] [146] "
260 t$(2)=" [146] [146] [146] "
270 t$(3)=" [146] [223] [223][146] [146][169]"
275 t$(4)=" [146] [146] "
280 t$(5)=" [146] [162][162] [146] [146] [162][162] [146] [162][162]"
290 t$(6)=" [146] [146] [223] [146][169] [146] [146] "
292 poke198,0
299 :
300 poke 53281,0:poke 53280,0:print"[147][142]":h$="[159][156][158][129][149][150][153][154]"
310 for j=1 to 3:for i=1 to 12:print"" mid$(h$,i,1)
312 ifpeek(198)<>0then 390
320 for k=0 to 6:printtab(7) t$(k):next:next:next
389 :
390 ifga<21then392
391 print" [210]esetting number of games.":ga=1:forz1=1to1000:next
392 for i=1to5:c(i)=1:c(i+5)=2:c(i+10)=3:c(i+15)=4:c(i+20)=5:next
395 poke v+12,170:deck=26
399 :
400 print"[147] [206]umber"spc(22)"[206]umber"
402 pokes+24,15:c0=3:cs=0:ws=0:k=1:print" [195]orrect"spc(21)"[215]rong"
404 print"[158] [202]oystick [212]o [205]ove [202]oystick
405 [153]" <----------------------->
406 print" [198]1 [200]and [198]7
410 col[178]16:ln[178]5:[141] 50:[151] v[170]21,126:[153] b1$:[141] 60:cc[178]c(n):c(n)[178]0
420 ln[178]15:col[178]1:[141] 50:[153]" sys(NULL)ake your selection: ";
422 [153]" with <(NULL)val(NULL)(NULL)(NULL)(NULL)> or peek(NULL)(NULL)(NULL)(NULL)(NULL)":[151]198,.
424 ln[178]23:col[178]3:[141] 50:[153]" [(NULL)ress '(NULL)' to (NULL)uit]"
430 joy[178][168][194](56320)[175]15:fire[178]([194](56320)[175]16)[173]16
431 [139]joy[179][177].[167]440
432 [139]fire[178]0[167] 470
433 [161]a$:[139]a$[178]""[167]430
434 [139]a$[178][199](13)[167]470
435 [139]a$[178]"input"[167]joy[178]4
436 [139]a$[178]"let"[167]joy[178]8
437 [139]a$[178]"q"[176]a$[178]"(NULL)"[167]800
440 [139] joy[178]8 [167] [139] [194](v[170]12)[179]250 [167] [151] v[170]12,[194](v[170]12)[170]40:c0[178]c0[170]1
445 z8[178][194](203)
450 [139] joy[178]4 [167] [139] [194](v[170]12)[177]90 [167] [151] v[170]12,[194](v[170]12)[171]40:c0[178]c0[171]1
460 [141] 30:[137] 430
470 [151] 2040,191[170]cc:col[178]16:ln[178]5:[141] 50:[153] b2$:[151] v[170]21,127
480 [139]c0[178]cc[167]hf[178]50:[137]495
490 hf[178]10
495 [141]20
499 :
500 [139] c0[178]cc [167] cs[178]cs[170]1:[137] 520
510 ws[178]ws[170]1
520 ln[178]10:col[178]4:[141] 50:[153] cs:col[178]31:[141] 50:[153] ws:c(n)[178]0
530 ln[178]15:col[178]1:[141] 50:[153]"print(NULL)ress <(NULL)val(NULL)(NULL)(NULL)(NULL)> or peek(NULL)(NULL)(NULL)(NULL)(NULL) for next card."
532 ln[178]16:col[178]1:[141] 50:[153]" "
540 fire[178]([194](56320)[175] 16)[173]16
542 [139] fire[178]1 [175] [194](197)[179][177]1 [175][194](197)[179][177]62 [167] 540
544 [139] [194](197)[178]62 [167] 800
550 [139] deck[177]1 [167] 410
555 [151]53269,0
560 [153]"loadsys(NULL)ut of 25 you got"cs"right.":r$[178]" just about "
570 [139] cs[177]5 [167] r$[178]" higher than "
580 [139] cs[179]5 [167] r$[178]" lower than "
590 [153]"(NULL)his result is"r$"what would":[153]"be expected.":ln[178]14:col[178]0:[141]50
600 [153][200](ag$,19);"sys(NULL)ress "[199](34)"asc1"[199](34)" to review your scores."
601 [153][200](ag$,20);"sys(NULL)ress "[199](34)"asc3"[199](34)" to play again."
602 [153][200](ag$,21);"sys(NULL)ress "[199](34)"asc7"[199](34)" to quit."
610 g(game)[178]cs:[151]198,.
620 [161]a$:[139]a$[179][177]"input"[175]a$[179][177]"let"[175]a$[179][177]"dim"[167]620
630 [139] a$[178]"input"[167] 660
640 [139] a$[178]"dim"[167]game[178]game[170]1:[137] 390
650 [153]"loadreturncont":[151] v[170]21,0
652 [147]"hello connect",8
660 [151]v[170]21,0:[153]"load(NULL)cores: [(NULL)p to 20 games]"
661 [129] i[178]1 [164] game:[153]" chr$ame";
662 [139]i[179]10[167][153]" ";
663 [153]i"cmd:"g(i);
664 [139]i[173]3[178][181](i[173]3)[167][153]
670 [130]:[153]:[153]:[137] 600
699 :
700 [131] 0,255,0,3,129,192,14,0,112
701 [131] 24,0,24,48,0,12,96,0,6
702 [131] 192,0,3,192,0,3,192,0,3
703 [131] 192,0,3,96,0,6,48,0,12
704 [131] 24,0,24,14,0,112,3,129,192
705 [131] 0,255,0,0,0,0,0,0,0
706 [131] 0,0,0,0,0,0,0,0,0,0
709 :
710 [131] 0,0,0,127,255,254,96,0,6
711 [131] 96,0,6,96,0,6,96,0,6
712 [131] 96,0,6,96,0,6,96,0,6
713 [131] 96,0,6,96,0,6,96,0,6
714 [131] 96,0,6,96,0,6,127,255,254
715 [131] 0,0,0,0,0,0,0,0,0
716 [131] 0,0,0,0,0,0,0,0,0,0
719 :
720 [131] 0,60,0,0,60,0,0,60,0
721 [131] 0,60,0,0,60,0,0,60,0
722 [131] 127,255,254,127,255,254,0,60,0
723 [131] 0,60,0,0,60,0,0,60,0
724 [131] 0,60,0,0,60,0,0,0,0
725 [131] 0,0,0,0,0,0,0,0,0
726 [131] 0,0,0,0,0,0,0,0,0,0
729 :
730 [131] 0,24,0,0,60,0,0,60,0
731 [131] 0,102,0,255,231,255,96,0,6
732 [131] 24,0,24,6,0,96,1,129,128
733 [131] 3,0,192,3,24,192,6,102,96
734 [131] 7,129,224,14,0,112,12,0,48
735 [131] 0,0,0,0,0,0,0,0,0
736 [131] 0,0,0,0,0,0,0,0,0,0
739 :
740 [131] 0,0,0,0,0,0,7,192,124
741 [131] 28,113,198,112,31,0,7,192,124
742 [131] 28,113,198,112,31,0,7,192,124
743 [131] 28,113,198,112,31,0,7,192,124
744 [131] 28,113,198,112,31,0,0,0,0
745 [131] 0,0,0,0,0,0,0,0,0
746 [131] 0,0,0,0,0,0,0,0,0,0
749 :
750 [131] 0,6,0,0,15,0,0,15,0
751 [131] 0,15,0,0,15,0,0,15,0
752 [131] 0,207,0,9,207,0,25,192,0
753 [131] 57,207,224,56,15,224,3,224,224
754 [131] 63,207,224,63,223,224,31,255,192
755 [131] 12,127,128,1,252,0,7,255,128
756 [131] 0,0,0,3,255,0,3,255,0,0
800 z8[178].:ag[178].
810 [153]"";
820 [153]" atnre you sure you want to (NULL)(NULL)right$(NULL)?";
825 [153]" ":[151]198,.
830 [161]a$:[139]a$[179][177]"y"[175]a$[179][177]"n"[167] 830
840 [139] a$[178]"n"[167]420
850 [137] 650
860 :
60100 pn$[178]"val.(NULL).(NULL).":an$[178]"peek(NULL): (NULL)atn(NULL)(NULL)val(NULL) val. (NULL)val(NULL)val(NULL)(NULL)"
60110 bo[178]11:sc[178]1:cl[178]06:c1[178]12:c2[178]00:c3[178]12:c4[178]00:c5[178]00:c6[178]02:c7[178]09
60130 [151]53280,bo:[151]53281,sc:[153]"load";:[137]60250
60140 [151]646,c1:[153]" totototototototototototototototototototototototototototototototototototo
60150 poke646,c2:print" [165] [204][207][193][196][211][212][193][210] [208][210][197][211][197][206][212][211]: [167]
60170 [151]646,c1:[153]" tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(
60180 poke646,c6:print""tab(20-len(pn$)/2);pn$
60190 poke646