home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1987 January
/
1987-01.d64
/
decipede
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
67 lines
10 if peek(49152)=169 then30
20 ifl=0thenl=1:load"dec ml",8,1
30 print chr$(8):goto580
40 m=3:w=1:c=1:s=25:p=25
50 print"[147][158]guns";m;" score";n;" [144] [215][215][215][215][215][215][215][215][215][215]";
60 print"[215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][209][209][209][209][209][209][209][209][209][209]";
70 print" [216]";
80 fori=1to21
90 print"[216] [216]";
100 nexti
110 fori=1to150
120 r=rnd(1)*679+1
130 poke1144+r,88
140 nexti:poke1984,88:poke2023,60:poke1864,62
150 gosub190
160 sys 50572:poke251,211:poke252,7
170 sys 49152
180 goto240
190 sys 49680:sys 51432:poke49299,2
200 poke52994,c:poke52996,s
210 poke 52998,0:poke52997,0
220 poke52999,0:ss=2:poke53013,ss:poke53015,0:poke6,0
230 forxx=54272to54295:pokexx,0:next:poke54296,15:return
240 rem
250 ifpeek(52998)<10thenm=m-1:ifm=0thenprint"[147]":goto550
260 x=peek(52997):y=peek(52998):sp=peek(53015):si=peek(53002)
270 n=n+x*25+y*50+sp*200+si*1200
280 ifn=>12000*wthenm=m+1:w=w+1
290 print"[158]"tab(5);m;tab(17);n
300 print"[145][144][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][215][209][209][209][209][209][209][209][209][209][209]"
310 sys 50614
320 fori=1tox+y+13
330 r=rnd(1)*679+1
340 poke1144+r,88
350 nexti
360 poke1110+z,32
370 z=rnd(1)*31+1
380 poke1110+z,88
390 ifpeek(52998)<10thenp=p-1:goto490
400 c=c+1:ifc=15thenc=1
410 ifc/3<>int(c/3)then480
420 onc/3goto430,440,450,460,470
430 s=p-3:p=p-1:goto500
440 s=p-3:p=p-1:goto500
450 s=p-4:p=p-1:goto500
460 s=p-4:p=p-1:goto500
470 s=p-4:p=p-1:goto500
480 ifc<8thens=p:goto500
490 s=p-1
500 ifs<7thens=7
510 ifp=7thenp=13
520 gosub190
530 sys 50572:poke251,211:poke252,7:sys49152
540 goto240
550 print"[147]game over"
560 print:print:print"score";n
570 fors=1to4000:next
580 poke53280,0:poke53281,0:print"[147]";
590 print" [223][146] [169] [223][146] [169] [223][146] [169] [223][146] [169] [223][146] [169] [223][146] [223][146] [169] [223][146]"
600 print" [146] [146] [146] [146] [146] [146] [146] [146] [146] [146] [146]"
610 print" [146] [146] [146] [146] [146] [146][169] [146] [146] [146] [146]"
620 print" [146] [146] [146] [146] [146] [146] [146] [146] [146] [146]"
630 print" [146][169] [223] [146][169] [223] [146][169] [223] [146][169] [146] [223] [146][169] [146][169] [223] [146][169]"
640 print:printspc(8)"press trigger to begin[146]"
650 ifpeek(56320)=111thenrun 40
660 goto650