home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 78
/
078.d81
/
typeracer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
72 lines
5 ifx=0then:poke56,32:clr:x=10:rem load"loadcol",8,1
7 ifx=10thenx=11:poke53281,0:poke53280,0:load"newchars",8,1
15 ifx=11thenx=1:rem: poke53272,30:load"loadscr",8,1
20 ifx=1thenx=2:load"truckspr",8,1
30 ifx=2thenx=3:load"newscr",8,1
40 ifx=3thenx=4:load"cardata",8,1
45 ifx=4thenx=5:load"code",8,1
50 ifx=5thenx=6:load"bitmap",8,1
55 ifx=6thenx=7:load"color",8,1
56 ifx=7thenx=8:load"racer dir.o",8,1
1000 rem set up and read scores
1010 dimsc$(11,1):cw$="[155][152][159][154][156][158][152]":gosub1470:poke650,0
1020 rem enter scores after game
1030 poke198,0:poke53272,23:printchr$(8);:poke53280,0:poke53281,0
1031 poke53270,peek(53270)and239:poke25134,96
1040 print"[147]":poke214,8:print"[145][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
1050 fori=1to7:print"[155] ":next
1060 print"[151][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
1070 poke214,10:print"[145][155] [200][201][199][200][160][211][195][207][210][197][211][160][212][193][194][204][197]"
1080 print" [215] to wipe high scores [209] to quit"
1090 print" [197] to edit word list "
1100 print" [211] [208] [193] [195] [197][160][160] [212] [207] [160] [208] [204] [193] [217] "
1110 gosub1310:le=0
1120 gosub1410
1130 ifa$<>" "anda$<>"w"anda$<>"q"anda$<>"e"then1110
1140 ifa$="w"thenclose15:open15,8,15,"s:type scores":gosub1470:goto1030
1150 ifa$=" "thensys24576:goto1030
1160 ifa$="q"then1185
1170 ifa$="e"thenpoke53281,3:print"[159][147]":sys25550:goto1030
1180 goto1130
1185 poke56,160:clr
1190 a$="hello connect":open15,8,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer<>63thenprint"[147]":end
1200 q$=chr$(34):poke646,peek(53281):print"[147]":print"p[207]2048,0:p[207]44,8:l[207]"q$a$q$",8
1210 [153]"run":[151]631,13:[151]632,13:[151]198,2:[128]
1220 [160]15:[159]15,8,15,"s0:type scores"
1230 [132]15,a$,a$,a$,a$
1240 [159]2,8,2,"type scores,u,w":[129]i[178]1[164]10
1250 [152]2,[199](34)sc$(i,0)[199](13)sc$(i,1):[130]:[160]2:[160]15:[142]
1260 [159]2,8,2,"type scores,u,r":[129]i[178]1[164]10
1270 [132]2,sc$(i,0),sc$(i,1):[130]:[160]2:[142]
1280 [159]2,8,2,"type scores,u,w":[129]i[178]1[164]10
1290 sc$(i,0)[178]"(NULL)evel str$":sc$(i,1)[178]"valmpty":[152]2,sc$(i,0)[199](13)sc$(i,1):[130]
1300 [160]2:[142]
1310 it$[178]"(NULL)evel "[170][199]([194](26993)[170]192):[151]26993,1
1320 f[178]0:[129]i[178]1[164]10:[139]it$[177]sc$(i,0)[167]f[178]i:i[178]10:[130]:[137]1350
1330 [130]:[142]
1340 [143] sort the scores
1350 [129]i[178]11[164]f[169][171]1:sc$(i,0)[178]sc$(i[171]1,0):sc$(i,1)[178]sc$(i[171]1,1):[130]
1360 sc$(f,1)[178]" ":sc$(f,0)[178]it$
1370 [151]214,18:[151]211,1:[153]"onlenongrats! valnter your name ";:[141]1490
1380 [139]w$[179][177]""[167]sc$(f,1)[178]w$
1390 [141]1220:[142]
1400 [143] print high scores
1410 [153]"":of%[178]of%[170]1:[139]of%[177][195](cw$)[171]1[167]of%[178]0
1420 [129]i[178]1[164]10:[139]i[178]6[167][151]214,18:[153]"on"
1430 [153][202](cw$,[182](i[171]of%)[171](i[178]of%),1);
1440 [153]i"cmd."[163]5)sc$(i,1)[163]27)sc$(i,0):[130]
1450 [161]a$:[139]a$[178]""[167]1410
1460 [142]
1470 [160]15:[159]15,8,15:[141]1260:[132]15,a$,a$:[139]a$[179][177]"ok"[167][141]1280
1480 [160]15:[142]
1490 w$[178]"":t[178]0:lw[178]0:[139]li[178]0[167]li[178]10
1500 [161]a$:as[178][198](a$[170][199](0)):[139]ti[177]15[167][141]1580
1510 [139](a$[179]" "[176]a$[177]"z")[175](a$[179]"atn"[176]a$[177]"(NULL)")[175]as[179][177]13[175]as[179][177]20[167]1500
1520 lw[178][195](w$):[139]as[178]13[167]t[178][171]1:[141]1580:[151]781,[194](214):[158]59903:[142]
1530 [139]lw[178]li[167][139]as[179][177]20[175]as[179][177]13[167]1500
1540 [139]as[178]20[167][139]lw[178]0[167]1500
1550 [139]as[178]20[167]w$[178][200](w$,[195](w$)[171]1):t[178]0:[141]1580:[141]1580:[153]"waitcmd cmd";:[137]1500
1560 w$[178]w$[170]a$:lw[178][195](w$):[151]212,0:[153]"wait"a$;:[141]1580
1570 [137]1500
1580 t[178][168]t:[151]199,[171]t:[153]" cmd";:ti$[178]"000000":[142]