home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1991 May
/
1991-05.d64
/
prog.page2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
1KB
|
18 lines
100 rem flap attack
110 cr$="":cd$=""
120 poke 53280,0:poke 53281,0:bd$(0)="[213][201]":bd$(1)="[202][203]":
130 sys 49152,"[147]score:"sc:sys 49152,left$(cd$,16)" [176]^[174][158]"
140 print " press the space bar to fire[158]";
150 fr=0:y=(rnd(.)*8)+5:for x=0 to 32
160 if peek(197)=60 and not fr then fr=-1:g=18+x
170 sys 49152,""left$(cd$,y)left$(cr$,x)bd$(xand1)
180 if not fr then for p=0 to 30:next:goto240
190 if g-x=<4 then fr=0
200 print ""tab(17)left$(cd$,g-x)"<>[157][157] ":if g-x<>int(y)+2 then240
210 if x<13 or x>15 then240
220 for i=7 to 23:poke 646,i:sys 49152,""left$(cd$,y)left$(cr$,x)"**":next
230 x=32:sc=sc+10
240 next:at=at+1:if sc<>100 then130
250 print "[147]after"at"attacks..."
260 sys49152," you have":sys49152," won"