home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1984 June
/
1984-06.d64
/
frantic2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
71 lines
10 cl$="wxy[157][157][157][157][157]z[\\]^[157][157][157][157][157]_!#$"
20 def fnrn(x)=int(rnd(1)*x)
30 v=36878:no=v-1:s=v-2:s2=v-3:s3=v-4:co=30720:eg=2000:tt=22:t6=256:z=32:de=29
40 goto7000
100 gl=3:sc=.
105 eg=2000
110 poke36869,255
120 print"[147]@[157]a[157][157]cb[157][157][157]fed[157][157][157]ihg[157][157][157][157]jkkkl";
130 poke646,10:print"[157][157][157][157]kkk":print"[159]]]]]]]]]]]]]]]]]]]]]][157][148]]":pokev,15+16*9
140 poke36879,238
150 print""cl$"[145][145][145][145][145][145][145]"cl$""cl$;
160 print"[158][145][145][145][145][145][145][145][145]%&]][157][157][157][157]'()][157][157][157]*+,[157][157]-."
170 print"[144]/"sc;:poke646,8:print"";:if gl>1thenfort=1togl-1:print"s";:next
180 lo=8128:pokelo+co,10:pokelo,18:pokelo-tt,17:pokelo-tt+co,10:pokelo-1,15
190 pokelo-1+co,.:cl=lo-1:poke8132+co,10:poke8110+co,10:poke8133+co,.
200 ty=fnrn(2)+1:ontygoto210,300
210 x=fnrn(2)+1:onxgoto220,230
220 bc=8142:ec=8149:sp=1:dd=21:goto240
230 bc=8163:ec=8155:sp=-1:dd=22
240 fordl=bctoecstepsp:pokedl,dd:pokedl+co,.
250 gosub1000:pokedl,z:next:ifsd<>196then3000
260 sd=.:goto200
300 nu=.:y=59:c=6:x=fnrn(2)+1:onxgoto310,320
310 b=7776:e=8084:goto330
320 b=7758:e=8088
330 fordl=btoesteptt:pokedl+co,c:pokedl,y:gosub1000
340 pokedl,z:next:ifsp<>t6then3000
350 sp=.:goto200
1000 ck=peek(197):ifck=64thenforr=0tode:next:return
1010 ifck=29andlo=8132then1500
1020 ifck=37andlo=8128then1750
1030 ifck=zthenontygoto2000,3500
1040 return
1500 pokelo,z:pokelo-tt,z:pokecl,z:lo=8128:cl=lo-1
1510 pokelo,18:pokelo-tt,17:pokecl,15:forsd=130to150step2:pokes2,sd:next:pokes2,.
1520 return
1750 pokelo,z:pokelo-tt,z:pokecl,z:lo=8132:cl=lo+1
1760 pokelo,20:pokelo-tt,19:pokecl,13
1770 forsd=150to130step-2:pokes2,sd:next:pokes2,.:return
2000 pokecl,peek(cl)+1:forsd=250to200step-10:pokeno,sd:next:ifpeek(cl+tt)=ddthen2100
2010 pokecl,peek(cl)-1:pokeno,.:return
2100 sc=sc+75:print"[144]/"sc:gosub4000
2110 pokedl,58:forsd=254to198step-2:pokedl+co,fnrn(8):pokeno,sd:next
2120 pokeno,.:goto2010
3000 gl=gl-1:fort=130to254step2:pokes,t:pokeno,t:pokev,15+fnrn(16)*16:next
3010 pokelo-tt,218:fort=15to0step-.2:pokes,.:pokeno,160:pokev,t+fnrn(16)*16:next
3020 ifgl=.then7000
3030 pokeno,.:goto120
3500 ifnu>2thenreturn
3510 nu=nu+1:pokelo-44,60:pokelo-44+co,4:forsd=150to180step10:pokes2,sd:next:pokes2,.
3520 ifpeek(lo-66)=59then3600
3530 poke(lo-44),z:return
3600 sc=sc+50:print"[144]/"sc:gosub4000:pokelo-66,61
3610 forsp=200to254step2:pokes,sp:next:pokes,.
3620 pokelo-66,z:return
4000 ifsc>=egthengl=gl+1:de=de-4:eg=eg+2000:poke7700+gl,19:poke7700+co+gl,8:goto4020
4010 return
4020 fort=130to230step10:forr=t+10totstep-1:pokes,t:nextr,t:pokes,.:return
7000 poke36869,240:printchr$(8):ifsc>hsthenhs=sc
7010 poke36879,8:poke646,10:print"[147] [176][192][192][174]":print" [221][176][192][189]"
7020 print" [221][173][178][192][178][192][178][192][192][178][192][192][178][178][192][174] [221][176][179][176][179][172][221][176][174][171][174][176][179][221][176][189] [221][221][221][221][221][160][221][221][221][221][221][221][221][221][173][174]"
7030 print"[176][192][192][219][189][171][179][173][177][177][189][173][189][173][189][173][177][192][189]":print"[221][176][192][189] [221][221]"
7040 print"[221][173][178][178][192][179][173][192][178][192][178][192][178][192][192][178][192][178][192][192][174] [221][176][179][221][192][179][176][174][221][190][221][176][179] [221][172][221][176][174][221]"
7050 print"[221][221][221][171][192][221][221][221][221][192][179][221][221][221][221][221] [221][221][221][221] [173][189][173][177][192][177][189][173][177][192][177][189][173][177][177][177][177][177][189][173][189]"
7060 print" last score:"sc:print" high score:"hs
7070 print"[156] hit a key to play"
7080 print" controls [146][156] <-left":print" >-right"
7090 print"space[146]-club or umbrella":pokeno,.
7100 poke36878,(fnrn(14)+2)*16:ifpeek(197)=64then7100
7110 goto100