home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 138
/
Tiger_Disk_138_20xx_Tiger-Crew-Disk_de_Side_B.d64
/
swerve
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
4KB
|
128 lines
1 ifpeek(816)=165andpeek(817)=244then8
2 print"[147] kill cartridge ! ":end
8 poke53280,15:poke53281,15
10 print"[147] [213][195][195][195][195]
11 [153]" peek (NULL) (NULL)thenusrusrusrusr (NULL)usrusr(NULL) (NULL) (NULL)+usrusrusrusr
12 print" [202][195][195][195][201] [205] [206][205] [206] [167][195][195][195] [204][175][175][206] [205] [206] [170][195][195][195]
13 [153]" peek (NULL)(NULL) (NULL)(NULL) thenandandandand fn (NULL) (NULL)(NULL) thenandandandand
14 print" [195][195][195][195][203]
15 [153],"written for the pet
16 print," by
18 [153],"malcolm michael
20 print,"adapted for the 64
21 [153]," by
22 print,"steven darnold
23 [153],"p.o. box 201
24 print,"alexandra, new zealand";
30 fori=1to4000:next
40 print"[147]maneuver your [209] around the track without
45 [153]"colliding with the computer's (NULL)
50 print"you get 10 points for running over a +
55 [153]"you get 22 points for running over a (NULL)
90 gosub61015
105 tr=1:cs=0:hs=0
110 p1=54273:p2=54276
120 v1=1:v2=32:v3=102:v4=230:v5=93:v6=64:v7=80:v8=96
130 dimd(3)
140 print"[147]":s$="":poke54277,8:poke54296,15
150 print"";s$;"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
160 prints$"[221]+ + + + + + +[166][166][166][166][166]+ + + + + + +[221]"
170 prints$"[221] [176][192][192][192][192][192][192][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][192][192][192][192][192][192][174] [221]"
180 prints$"[221]+[221]+ + + + + +[166][166][166][166][166]+ + + + + +[221]+[221]"
190 prints$"[221] [221] [176][192][192][192][192][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][192][192][192][192][174] [221] [221]"
200 prints$"[221]+[221]+[221]+ + + + +[166][166][166][166][166]+ + + + +[221]+[221]+[221]"
210 prints$"[221] [221] [221] [176][192][192][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][192][192][174] [221] [221] [221]"
220 prints$"[221]+[221]+[221]+[221]+ + + +[166][166][166][166][166]+ + + +[221]+[221]+[221]+[221]"
230 prints$"[221] [221] [221] [221] [176][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][174] [221] [221] [221] [221]"
240 prints$"[221]+[221]+[221]+[221]+[221]+ + +[166][166][166][166][166]+ + +[221]+[221]+[221]+[221]+[221]"
250 prints$"[221][166][166][166][166][166][166][166][166][146] [176][192][192][192][192][192][192][192][192][192][192][192][174] [166][166][166][166][166][166][166][166][146][221]"
260 prints$"[221][166][166][166][166][166][166][166][166][166][146][221]s w e r v e[221][166][166][166][166][166][166][166][166][166][146][221]"
270 prints$"[221][166][166][166][166][166][166][166][166][166][146][221][152]game score[146][221][166][166][166][166][166][166][166][166][166][146][221]"
280 prints$"[221][166][166][166][166][166][166][166][166][166][146][221] [221][166][166][166][166][166][166][166][166][166][146][221]"
290 prints$"[221][166][166][166][166][166][166][166][166][146] [173][192][192][192][192][192][192][192][192][192][192][192][189][166][166][166][166][166][166][166][166][146][221]"
300 prints$"[221]+[221]+[221]+[221]+[221]+ + +[166][166][166][166][166]+ + +[221]+[221]+[221]+[221]+[221]"
310 prints$"[221] [221] [221] [221] [173][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][189] [221] [221] [221] [221]"
320 prints$"[221]+[221]+[221]+[221]+ + + +[166][166][166][166][166]+ + + +[221]+[221]+[221]+[221]"
330 prints$"[221] [221] [221] [173][192][192][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][192][192][189] [221] [221] [221]"
340 prints$"[221]+[221]+[221]+ + + + +[166][166][166][166][166]+ + + + +[221]+[221]+[221]"
350 prints$"[221] [221] [173][192][192][192][192][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][192][192][192][192][189] [221] [221]"
360 prints$"[221]+[221]+ + + + + +[166][166][166][166][166]+ + + + + +[221]+[221]"
370 prints$"[221] [173][192][192][192][192][192][192][192][192][192][192][192][166][166][166][166][166][192][192][192][192][192][192][192][192][192][192][192][189] [221]"
380 prints$"[221]+ + + + + + +[166][166][166][166][166]+ + + + + + +[221]"
390 prints$"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
400 print"";tab(15);mid$(str$(tr),2)
410 crt=1024:w=55296-crt
420 k=crt+23*40+15+len(s$):p=k+2
425 df=1
430 d(0)=1:d(1)=-40:d(2)=-1:d(3)=40
440 dk=2:dp=0:tk=1:tp=1:v9=43
450 sk=0:sc=0:fp=v3:fk=102
460 pokep2,0:pokek,87:pokek+w,6:pokep,81:pokep+w,6:ifp=kthen690
470 pokep2,16:pokep2,17:pokep1,sd:sd=0
480 c=peek(p+d(dp)):ifc<>43andc<>v9then500
485 sc=sc+int(c/4):sd=c*2
495 print"[145]"tab(18)right$(" "+str$(sc),8):c=v8
497 ifsc>999thenv9=90
500 ifc=93orc=64thendp=dp+1:c=v2:ifdp>3thendp=0
510 ifc=87then690
520 pokep,fp:pokep+w,2:fp=c:p=p+d(dp):ifrnd(1)>.85then600
530 c=peek(k+d(dk)):ifc=93orc=64thendk=dk-1:c=v2:ifdk<0thendk=3
540 ifc=v8thenc=v9
545 ifc=81then690
550 pokek,fk:pokek+w,2:k=k+d(dk):fk=c
552 ifc<>v3andc<>v4thentl=df:goto600
556 tl=tl-1:iftl<0then600
560 ifc=v3andtk<tpthenk=k+v7*d(dk):tk=tk+v1
570 ifc=v3andtk>tpthenk=k-v7*d(dk):tk=tk-v1
580 ifc=v4andtk<tpthenk=k-2*d(dk)/40:tk=tk+v1
590 ifc=v4andtk>tpthenk=k+2*d(dk)/40:tk=tk-v1
600 mv=0:i=j(peek(pk)and15)
620 if(iand1)andfp=v3thenjs=p-80:tt=tp+sgn(d(dp)):mv=1
630 if(iand2)andfp=v3thenjs=p+80:tt=tp-sgn(d(dp)):mv=1
640 if(iand4)andfp=v4thenjs=p-2:tt=tp-sgn(d(dp)):mv=1
650 if(iand8)andfp=v4thenjs=p+2:tt=tp+sgn(d(dp)):mv=1
655 ifmv=0then680
660 ifmvthensd=14
670 ifpeek(js)=fpthentp=tt:p=js
680 df=1+int(sc/500)
685 goto460
690 x=p-crt:print"";
700 y=int(x/40):x=x-y*40
710 fora=1toy:print"";:next
720 printtab(x-2)"[144][195][214][144][195][145][157][157][157][205][221][206][157][157][157][206][221][205]"
730 fora=1to25:pokep2,33:pokep1,1:pokep2,0:pokep2,33:pokep1,3:pokep2,0
740 pokep2,33:pokep1,2:pokep2,0:next
750 poke54296,0
760 tm=ti+150
770 ifti<tmthen770
780 geta$:ifa$<>""then780
790 ifsc>hsthenhs=sc
800 cs=cs+sc
810 print"[147] your score for game"tr"was"sc;"[157],":tr=tr+1
820 print" for an average of"int(cs/tr+.5)"points/game."
830 print" your high score so far is"hs;"[157]."
840 ifpk=203theninput"do you wish to play again";a$:ifleft$(a$,1)<>"y"then880
870 print"press fire button[146] to play again":waitpk,16,16:goto140
880 poke54276,0:poke54273,0:poke54277,0:end
61015 readi,d,f,q,s,k:fort=i+8tod:readx:poket,x:next
61020 dimj(15):input"joystick vorhanden ";a$:ifleft$(a$,1)<>"j"then61060
61025 input"port 1 or 2";a$
61030 pk=56322-val(a$):fori=0to15:j(i)=15-i:next:goto105
61060 pk=203:j(2)=8:j(3)=2:j(6)=1:j(7)=4
61070 print"[147] up
61073 [153]"
61074 print" [207][183][183][183][183][183][208]
61075 [153]" sgn f 5 +
61076 print" [204][175][175][175][175][175][186]
61077 [153]"
61078 print" [207][183][183][183][183][208] [207][183][183][183][183][208] [207][183][183][183][183][183][208]
61079 [153]" sgncrsr+ sgncrsr+ sgn f 7 +
61080 print" [204][175][175][175][175][186] [204][175][175][175][175][186] [204][175][175][175][175][175][186]
61081 [153]"
61082 print" left right down":fori=1to5000:next:goto105
61200 data651,748,706,703,147,164,173,79,232,74,74,74,74,45,79,232,168,185
61210 data237,2,76,193,2,32,228,255,201,49,144,4,201,58,144,10,201,32,208,4,169
61220 data48,208,2,169,53,56,233,48,162,255,142,151,0,162,94,168,185,217,2,149
61230 data0,185,227,2,149,1,169,0,160,4,149,2,232,136,208,250,96,0,129,130,130
61240 data131,131,131,131,132,132,0,0,0,64,0,32,64,96,0,16