home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1985 June
/
1985-06.d64
/
freeze_vic
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
67 lines
10 hs=0
20 eg=0:restore:goto470
30 pokedd,127:if((peek(p1)and8)=.)thend=w:goto170
40 if((peek(p1)and16)=.)thend=-t:g=2:goto170
50 if((peek(p1)and4)=.)thend=-w:goto170
60 if((peek(p2)and128)=.)thend=t:g=.:goto170
70 fora=.to3:ifz>e(a)thenifpeek(e(a)+w)=ntheni=w:goto90
80 ifz<e(a)thenifpeek(e(a)-w)=ntheni=-w
90 ifz>e(a)thenifpeek(e(a)+t)=ntheni=t:goto110
100 ifz<e(a)thenifpeek(e(a)-t)=ntheni=-t
110 ifpeek(e(a)+i)=nthenpokee(a),n:e(a)=e(a)+i:pokee(a)+c,t:pokee(a),5
120 ife(a)+i=zthen240
130 pokee(a),4:next
140 hh=hh+1:ifhh>htthenhh=.:h=h-1:ifh<0then280
150 print"";h;"[157] "
160 goto30
170 pokev-3,245:ifpeek(z+d)=nthenpokez,n:z=z+d:pokez+c,7:pokez,g:pokev-3,.:goto210
180 pokev-3,.:ifpeek(z+d)=6andpeek(z+d*2)<>nthen220
190 ifpeek(z+d)=6andpeek(z+d*2)=nthenqq=z+d:goto310
200 ifpeek(z+d)<6then240
210 goto70
220 fora=.to3:pokez+d,8:pokev-t,152:pokez,g:pokez+d,9:pokev-t,175:pokez,g+t:next
230 pokez+d,n:pokev-t,.:s=s+10:print">";s:goto70
240 fory=.to15:pokez,g+t:pokev-t,161:pokee(a),4:pokez,g:foro=1to20:next:pokee(a),5
250 next:pokev-t,.:fory=.to15:pokev,y:pokev-t,245:foro=1to25:next:next:pokev-t,.
260 sh=sh-1:print"[157][157][157]";sh"[157] ":ifsh=.then280
270 goto30
280 pokez,n
290 print"game over":print" press [159]firebutton";
300 wait37137,32,32:goto20
310 pokev-3,200:pokev-3,220:pokeqq,n:qq=qq+d
320 ifpeek(qq)=nthenpokeqq+c,3:pokeqq,6:goto310
330 pokev-3,.:ifpeek(qq)<6thenpokeqq+c,3:pokeqq,6:s=s+1000:print">";s:goto350
340 qq=qq-d:pokeqq+c,3:pokeqq,6:goto30
350 fory=240to255:pokev-2,y:pokev-2,.:next
360 fora=.to9:pokeqq+c,t:pokeqq,11:pokev-4,235:pokez,g+t:pokeqq,10:pokez,g:pokev-3,200
370 pokev-4,.:next:pokeqq,4:pokev-3,.:eg=eg+1:ifeg>3then390
380 goto30
390 eg=.:fory=128to255:pokev-3,y:next:pokez,n:fora=.to3:pokee(a),n:next:z=7910
400 fory=.to3:foro=240to255:pokev-3,o:fora=1to20:next:next:next:pokev-3,.
410 fory=8141to7702step-1:ifpeek(y)=6thenpokey+c,t:pokev-4,240:pokey+c,3:s=s+25
420 pokev-4,.:print">";s:h=60:next:fory=140to255:pokev-3,y:next:pokev-3,.:pokez,g
430 pokez+c,7:ht=ht-t:ifht<1thenht=1
440 sh=sh+t:print"[157][157][157]";sh:lv=lv+1:print"[157][157][157]";lv
450 fory=1to10:b=7768+int(rnd(t)*352):ifpeek(b)=nandb<>zthenpokeb+c,3:pokeb,6
460 next:pokev-2,144:s=s+(h*10):print">";s:pokev-2,.:goto30
470 poke36869,240:print"[147][144]the freeze factory!![146]"
480 print"score:":print""s:ifs>hsthenhs=s
490 s=0:print"high score:":print""hs
500 poke36879,28:print"press fire[144] to play"
510 wait37137,32,0:wait37137,32,32
520 poke52,28:poke56,28:poke51,.:poke55,.:forx=7424to7432:pokex,.:next
530 forx=7168to7263:readd:pokex,d:next:v=36878:pokev-9,255:pokev,15:t=1:w=22:pokev+t,8
540 print"[147]> 0":print"[157][157][157][157][157][157][157][157]level 1":print"time: 60":c=30720
550 fora=tto50:pokev-2,240:b=7768+int(rnd(t)*352):pokeb+c,3:pokeb,6:pokev-2,.:next
560 fora=7746to7767:pokea,7:pokea+c,4:next:fora=7768to8120stepw:pokea+c,4:pokea,7
570 pokea+21,7:pokea+21+c,4:next:fora=8121to8140:pokea+c,4:pokea,7:next
580 fora=.to15:pokev,a:pokev-4,225:fory=1to75:next:next:pokev-4,.
590 n=32:p1=37151:p2=37152:dd=37154:z=7910:h=60:sh=3:e(.)=7902:e(t)=7914:e(2)=7800
600 e(3)=7998:pokez+c,7:pokez,.:ht=4:lv=1
610 print"[157][157][157][157][158]@";sh:goto30
620 print"[157][157][157][157][158]@";sh
630 data62,120,119,112,28,96,88,54,62,120,127,60,112,120,48,28,124,30,238,14,56,6,26
640 data108,124,30,254,60,14,30,12,56,60,90,36,24,60,90,36,102,60,90,36,90,60,24,36,195
650 data126,195,153,165,165,153,195,126,204,51,204,51,204,51,204,51,0,34,0,136,0,34,0
660 data136,68,0,17,0,68,0,17,0,0,24,60,126,219,219,126,60,0,0,60,126,255,153,126,60