home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1985 June
/
1985-06.d64
/
assassination
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
1KB
|
26 lines
10 d=22:f=30720:g=1:h=32:dima%(39):fora=1to10:readc%(a),s%(a):next:a$="[144]"
20 data 28,116,30,111,31,167,144,170,144,183,156,184,156,188,158,190,159,180,31,181
30 f1=36875:f2=36877:k=250:l=2:poke36878,15
50 fora=1to22:a$=a$+chr$(c%(int(rnd(1)*10)+1))+chr$(s%(int(rnd(1)*10)+1))
60 next:poke36879,30:print"[147] character":print" assassination"
70 print"enter speed(0-9)":print" 9 is the fastest":poke198,0
80 getb$:ifb$<"0"orb$>"9"then80
90 s=28-3*val(b$):print"[147]"spc(7)"score[146] 0"
95 fora=8164to8185:pokea,160:pokea+f,6:next
100 fora=1to20:print:next:printa$;
110 fl=0:fora=7724to7745:poke649,1:ss=25:ifa%(a-7724)=0then170
120 nexta:poke198,0:ifflthen110
130 print"[146]"spc(7)"game over":print" play again? (y/n)"
140 geta$:ifa$="y"thenprintspc(9)"[144]ok":run
150 ifa$="n"thenpoke828,0:sys828
160 goto140
170 fl=1:r1=rnd(1):r2=(-(r1<.5)*(rnd(1)*9+48))+(-(r1>=.5)*(rnd(1)*26+1))
180 r$=chr$(r2-(r2<30)*64):c=a+418:forb=atocstepd:pokef1,k-l*ss
190 ss=ss-1:geta$:ifa$<>""thenpoke649,0:ifa$=r$then220
200 pokeb-d,h:pokeb,r2:pokeb+f,.
210 fortd=gtos:nexttd:nextb:q=1:gosub230:pokeb-d,h:a%(a-7724)=1:nexta:goto110
220 q=0:gosub230:pokeb-d,h:sc=sc+ss:print"[146]"spc(12)sc:nexta:goto110
230 pokef1,0:z=200:pokeb-d+f,2:fort=1to20
240 pokef2,z:poke36864,5+(q=1):pokeb-d,42-4*(peek(b-d)=42)
250 z=z-(q=0)*2:poke36864,5:next:pokef2,0:return