home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rockford Magazine
/
Rockford_Magazine_004_19xx_-_de_Disk_2_of_2_Side_B.d64
/
pirates
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
5KB
|
127 lines
0 goto12000
1 spz=10241:s=53248:pokespz-1,0:col=255:pokecol,2:q=1:li=3:dd=0
2 fl=10368:up=fl+3:dn=fl+6:lf=fl+9:rt=fl+12:sn=251:sx=252:o=1416
3 def fn a(x)=peek(52481)*256+peek(52480)-54272:se=1177:de=se+79:dk=0
100 gosub2000:gosub1000
101 gosub3000:sysfl:gosub4000:gosub3000:gosub4000:gosub4000:gosub3000:gosub4000
102 goto101
1000 print"[147] - attack of the software pirates -"
1010 a$=" "
1020 b$=" [158] [158] [158] [158] "
1030 c$="[213][201][213][201][213][201][213][201][158][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201]"
1040 d$="[202][203][202][203][202][203][202][203][158][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203]"
1050 printc$:printd$:fori=1to5:printa$:printa$:printb$:printb$:nexti
1060 print" [158] "
1070 print" [158] "
1080 fori=0to25:print"";:nexti:print"score:00000"
1090 print"[157][157][157][157][157][157][157][157][157][157][157][157][157][157]disks:00[157][157][157][157][157][157][157][157]lives"
1998 pokes+21,231:return
2000 pokes+21,0:pokes+32,0:pokes+33,0:print"[147]":fori=0to11:print:nexti
2002 print"[158] please wait"
2003 forq=1to2:w=0:fori=1to16:forp=0to1:reada:pokespz+y+w+p,a:nextp
2004 pokespz+y+w+p,0:w=w+3:nexti:w=w-3:fori=1to16:pokespz+y+w+p+i,0:nexti
2005 y=y+64:w=w+3:nextq:m=2040
2006 pokem,161:fori=m+1tom+4:pokei,160:nexti:pokes,16:pokes+1,74
2008 fori=s+39tos+46:pokei,0:nexti:pokes+28,255:pokes+37,1:pokes+38,10
2009 pokem+5,161:pokem+6,161:pokem+7,161:pokes+16,224:pokes+15,101
2010 pokes+10,15:pokes+11,101:pokes+12,32:pokes+13,101:pokes+14,49
2011 pokes+2,16:pokes+3,202:pokes+4,64:pokes+5,202:pokes+6,112:pokes+7,202
2012 pokes+8,160:pokes+9,202
2020 x=52480:fori=0to9:readf:pokex+i,f:nexti
2500 z=10368:fori=0to277:readd:pokez+i,d:nexti:return
3000 j=peek(56320):pokesx,0:pokesn,0
3020 ifj=125thensysdn
3030 ifj=126thensysup
3040 ifj=119thensysrt
3050 ifj=123thensyslf
3055 poke53278,255:e=peek(53278)and1
3057 ife=1andcar=1thengosub5000
3060 ifpeek(fna(x))=213andcar=0andpeek(53249)<>234thencar=1:gosub3900
3065 ifpeek(53249)=234andcar=1andpeek(fna(x))<>213thencar=0:gosub3950
3070 return
3900 pokefna(x),160:pokefna(x)+1,160:pokefna(x)+40,160:pokefna(x)+41,160
3901 vv=fna(x):return
3950 pokefna(x),213:pokefna(x)+1,201:pokefna(x)+40,202:pokefna(x)+41,203
3960 ifpeek(se)=57thenpokese-1,peek(se-1)+1:pokese,48:goto3980
3970 pokese,peek(se)+1
3980 ifpeek(de+1)=57thenpokede,peek(de)+1:pokede+1,48:dk=dk+1:goto3999
3990 pokede+1,peek(de+1)+1:dk=dk+1:ifdk=4thengosub5500
3999 return
4000 q=q+1:ifq=5thenq=1
4001 poke53278,255:pokesn,q:pokesx,q*2:gx=peek(53248):gy=peek(53249)
4120 bx=peek(53248+(q*2)):by=peek(53249+(q*2))
4125 ifcar=0andq<3thengoto4170
4126 ifcar=1andq=4thenforgh=1to2
4130 ifbx<gxthensysrt
4140 ifbx>gxthensyslf
4150 ifby<gythensysdn
4160 ifby>gythensysup
4170 e=peek(53278)and1
4180 ife=1andcar=1thengosub5000
4181 ifcar=1andq=4thennextgh
4999 return
5000 li=li-1:car=0:pokevv,213:pokevv+1,201:pokevv+40,202:pokevv+41,203
5010 poke53269,peek(53269)and(2^(5+li))-1:ifli=0then5600
5020 return
5500 dd=dd+dk:dk=0:ifdd=4thencc=30:pokecol,5:poke53269,peek(53269)or8
5520 ifdd=8thencc=158:pokecol,7:poke53269,peek(53269)or16
5530 ifdd=12thengoto7000
5545 print"":a$=" "
5551 print:printchr$(cc):fori=1to4:printa$:printa$:print:print:nexti
5571 printa$:printa$:printa$:printa$;"":return
5600 fori=0to100:poke53287,peek(53287)+iand15:nexti:poke53269,0
5601 fori=0to50:print:next
5602 print" game over"
5603 print" another game? y/n"
5610 for i=1to11:print:next
5620 geta$:ifa$=""then5620
5630 ifa$="y"thenrun
5640 ifa$<>"n"then5620
5650 end
5999 return
7000 fori=0to06:print:next:print"you win"
7001 fori=0to30:forfl=0to3:poke53288+fl,peek(53288+fl)+1and15:nextfl:nexti
7002 poke53269,0:goto5601
10000 data0,0,0,0,2,160,10,168,43,250,38,218,47,254,42,170
10010 data9,88,2,160,0,192,2,160,5,20,8,8,4,4,40,10
10020 data0,0,2,10,10,8,42,170,43,250,38,230,47,254,15,252
10030 data3,240,3,240,10,104,42,170,42,106,42,170,58,171,63,63
10040 rem
10050 data120,216,248,218,254,218,4,219,10,219
11000 data76,143,40,76,249,40,76,23,41,76,53,41,76,83,41,169
11010 data200,133,253,169,216,133,254,32,151,224,165,141,41,15,201,12
11020 data16,245,141,6,204,32,151,224,165,141,41,7,201,5,16,245
11030 data170,224,0,240,14,165,253,24,105,160,133,253,144,2,230,254
11040 data202,208,238,174,6,204,224,0,240,14,165,253,24,105,2,133
11050 data253,144,2,230,254,202,208,238,32,151,224,165,141,41,3,201
11060 data3,240,245,168,185,246,40,160,0,145,253,200,145,253,160,40
11070 data145,253,200,145,253,96,2,5,7,32,130,41,56,233,80,133
11080 data253,176,2,198,254,32,141,41,208,12,32,115,41,185,1,208
11090 data56,233,16,153,1,208,96,32,130,41,24,105,80,133,253,144
11100 data2,230,254,32,141,41,208,12,32,115,41,185,1,208,24,105
11110 data16,153,1,208,96,32,130,41,56,233,2,133,253,176,2,198
11120 data254,32,141,41,208,12,32,115,41,185,0,208,56,233,16,153
11130 data0,208,96,32,130,41,24,105,2,133,253,144,2,230,254,32
11140 data141,41,208,14,32,115,41,185,0,208,24,105,16,153,0,208
11150 data144,0,96,165,253,157,0,205,165,254,157,1,205,165,251
11160 data10,168,96,166,252,189,1,205,133,254,189,0,205,96,160,0,177
11170 data253,41,15,197,255,96
12000 poke53280,0:poke53281,0:print"[147]"
12001 print"[154]-attack of the software pirates-"
12002 print"[150] the objective is to get the
12003 [153]"disks from the top of the screen
12004 print"to the bottom, and deposit them
12005 [153]"in their correct color coordinated
12006 print"positions."
12007 print" the first row of disks you will
12008 [153]"find fairly easy. the second color
12009 print"will get tougher as the software
12010 [153]"pirates are out to stop you."
12011 [153]" if a pirate should catch you
12012 print"he will automatically steal your
12013 [153]"disk and place it back at the top
12014 print"of the screen."
12015 print"[153]any key to play game"
12016 getgm$:ifgm$="" then12016
12020 goto1