home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore 64 Scene Diskmags Assortment
/
Your_Computer_5_19xx_-.d64
/
baloon
(
.txt
)
next >
Wrap
Commodore BASIC
|
2023-02-26
|
8KB
|
198 lines
1 rem**********************************
2 rem* b a l l o o n 6 4 *
3 rem* by khaleel al-ghamdi (ksa) *
4 rem**********************************
5 poke53281,0:poke53280,0:sn=1945:en=1145:hs=0:dimg(39),p(39):gosub600:gosub900
10 gosub850:in$="gha":goto556
50 x=168:y=60:pokev+14,x:pokev+15,y:pokev+16,peek(v+16)and127
100 fori=0to49:next
130 sys49152:pokev+30,0:ifg>9thengosub405:gosub480:gosub720:goto50
140 if(peek(v+30)and128)=128then500
150 ifsc>bs thengosub460
200 j=peek(56320):ifj=127then100
205 if(jand16)=0then300
210 if(jand1)=0andy>56theny=y-8:goto230
220 if(jand2)=0andy<218theny=y+8
230 if(jand4)=0andx>34thenx=x-8:goto250
240 if(jand8)=0andx<318thenx=x+8
250 pokev+15,y:ifx>255thenpokev+14,x-256:pokev+16,peek(v+16)or128:goto130
260 pokev+16,peek(v+16)and127:pokev+14,x:goto130
300 on f goto 310,350
310 ifint((x-24)/8)<>(x-24)/8ory<218then100
320 a=(x-24)/8:ifg(a)=1thenf=2:g(a)=0:poke2047,193:pokesn+a,32:goto380
330 goto100
350 ifint((x-24)/8)<>(x-24)/8ory>55then100
360 b=(x-24)/8:ifp(b)=0thenf=1:p(b)=1:poke2047,192:pokeen+b,81:g=g+1:goto390
370 goto100
380 pokev+46,1:gosub800:goto130
390 pokev+46,15:sc=sc+(lv-1)*5:gosub800
398 gosub410:goto130
400 e$="":return
405 sc=sc+((lv-1)*500)
410 printleft$(e$,4);sc:return
420 printleft$(e$,14);fl:return
430 printleft$(e$,21);lv-1:return
440 printe$;hs:return
450 print" *** teclea tus iniciales (3) **";:in$=""
451 fori=0to9:get a$:next
452 get a$:ifa$=""then452
453 in$=in$+a$:printa$;
454 iflen(in$)<>3then452
455 printleft$(e$,27);in$:return
460 bs=bs+2500*(lv-4):iffl<9thenfl=fl+1:gosub420:goto470
465 return
470 fori=10to0step-2:pokes,l(i):pokes+1,h(i):pokes+4,33
472 print" v i d a b o n u s * v i d a b o n u s":fort=0to59:nextt
474 print"[145][145] ":nexti:pokes+4,0:return
480 lv=lv+1:iflv<7 thenpoke53269,(peek(53269)or(2^lv)):poke252,(1+lv)*2-1:return
499 poke251,int(lv/2):return
500 rem ** dead sound **
501 rempokes+14,5:pokes+18,16:pokes+3,1:pokes+24,143:pokes+6,240:pokes+4,0
502 fort=yto235step4::h=h(t and 7):l=l(t and 7)
503 pokes,l:pokes+1,h:pokev+15,t:pokes+4,129:next:p=peek(v+16):fort=x to0step-16
504 pokev+14,t and255:pokev+16,p and(int((t/256))*128+127):next:pokes+4,0
510 fl=fl-1:gosub420:iffl=0then554
530 iff=2thenpoke2047,192:g=g+1:f=1:ifg>9thengosub480:gosub405:gosub720
540 pokev+46,15:goto50
554 print" g a m e o v e r ":pokev+21,0
555 ifsc>hsthenhs=sc:gosub450:gosub440:goto554
556 print"*** pulsa fuego joystick 2[146] ***"
558 fori=0to64:poke53280,iand15:next
560 j=peek(56320):if(jand16)=16then560
561 pokes+14,5:pokes+18,16:pokes+3,1:pokes+24,143:pokes+6,240:pokes+4,0
562 sys37120:pokes1,0
564 pokes+4,0:fori=0to11:pokes,l(i):pokes+1,h(i):pokes+4,33:fort=0to99:nextt,i
565 fori=0to255:next:sys36864:pokes+4,0:gosub700:goto50
600 rem ** title display **
602 print"[147]":p$=" ":poke53269,0
605 printp$"[209][209][209][209] [209] [209] [209] [209] [209] [209] [209]"
610 printp$"[209] [209] [209] [209] [209] [209] [209] [209] [209] [209] [209] [209]"
615 printp$"[159][209] [209][160][209][160][209][160][209][160][160][160][209][160][160][160][209][160][209][160][209][160][209][160][209][209] [160][209]"
620 printp$"[156][209][209][209][209] [209][209][209] [209] [209] [209] [209] [209] [209] [209] [209] [209]"
625 printp$"[159][209] [209] [209] [209] [209] [209] [209] [209] [209] [209] [209] [209][209]"
630 printp$"[209][160][160][160][209][160][209][160][209][160][209][160][160] [209][160][160][160][209] [209] [209][160][209] [209] [209]"
635 printp$"[209][209][209][209] [209] [209] [209][209][209] [209][209][209] [209] [209] [209] [209] "
640 printp$" [209][209][209] [209]"
645 printp$" [209] [209] [209]"
647 printp$"[159] [209] [209] [209]"
650 printp$"[156] [209][209][209][209] [209][209][209][209][209]"
655 printp$"[159] [209] [209] [209]"
657 printp$" [209] [209] [209]"
660 printp$" [209][209][209] [209]"
665 printp$"[158][157] *by khaleel al-ghamdi (k.s.a.)* "
667 print" instrucciones"
670 print" manda las facturas del suelo al cielo "
675 print"utiliza fuego para cogerlas y soltarlas"
680 print" no choques con los globos "
699 return
700 rem *** draw game ***
705 v=53248:poke2047,192:pokev+46,15
710 r=40:fori=0to15step2:pokev+i,r+i*15:pokev+1+i,int(rnd(0)*49)+100:next
714 f=1:lv=2:fl=5:sc=0:bs=2500:fori=0to39:g(i)=0:p(i)=1:next
718 poke53269,135:poke251,3:poke252,5:poke253,0:pokev+16,0:poke53271,127
720 fori=3to16step3:g(i)=1:p(i)=0:g(i+19)=1:p(i+19)=0:next
722 fori=0to15:poke52992+i,int((rnd(0)*9)/5):next
725 print"[147]* score * vidas * niv * int * hi-score *";
727 print"[223] [146][169]";:g=0
728 print" [146] [146] [146] [146] [146] [146] [146] [146] [146] [146] [146]";
729 print"[145] "
730 print"[169] [223][146]";
732 print"[149] [206][205] [206][205] [206][205] [206][205]"
734 print"[205] [206] [205] [206][205][206] [205] [206] [205] [175][175][175][175][175][206] [183] [205] [205][206][205][175][175][175][175][206][205][206] [205][206][183] [205]
736 [153]" * * * * * "
738 [153]"for peek peek peek peek peek "
740 [153]" (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL)"
742 [153]" wait";
744 [151]sn[170]78,160:[151]56295,5:[141]400
745 [129]i[178]1[164]5:[145] i [141]410,420,430,440,455:[130]:[142]
750 [141]850:[151]w,129:[151]vl,5:g[178]0:[142]
800 [143] ** sound for picking **
810 [151]s[170]4,33:[129]i[178]0[164]29:[130]:[151]s[170]4,0:[142]
850 [129]t[178]0[164]2:[129]x[178]0[164]255:[135]a:[139]a[178][171]1[167]852
851 [151]36864[170]t[172]256[170]x,a:[130]x
852 [130]t
853 [151]37632,0:[151]37633,0
860 s1[178]54276:[129]i[178]s1[171]4[164]s1[170]20:[151]i,0:[130]:[151]s1[170]20,15:[151]s1,33:s[178]54279
868 [134]h(11),l(11):[129]i[178]0[164]11:[135]h(i),l(i):[130]
869 [129]t[178]0[164]255
870 [135]a$:[139]a$[178]"*"[167] 889
871 [139][195](a$)[177]1[167]d[178][197](a$):[137]870
872 [139]a$[178]"+"[167]o[178]2:[137]870
874 [139]a$[178]"/"[167]o[178]1:[137]870
875 a[178][198](a$)[171]65:[145]o [137]877,878
877 h[178]h(a):l[178]l(a):[137]880
878 h[178]h(a)[172]2:l[178](l(a)[172]2)[175]255
880 [151]37888[170]t,h:[151]38144[170]t,l:[151]38400[170]t,d:[130] t
889 [151]37380,t:[158]36864
890 [142]
899 [143] ** pokeing m/l and sprites **
900 sd[178]12287:[129]i[178]1[164]191:[135]q:[151]sd[170]i,q:[130]:[151]2047,192
901 [129]i[178]1[164]8:[151]53295[171]i,i[170]1:[130]i
902 [129]i[178]0[164]6:[151]2040[170]i,194:[130]
903 sd[178]49152:[129]l[178]0[164]13:[129]i[178]0[164]15:[135]q:[151]sd[170]i,q:c[178]c[170]q:[130]i
904 [135]q:[139]c[179][177]q [167][153]"error data en linea";940[170]l:[128]
905 c[178]0:sd[178]sd[170]16:[130]l:[151]sd,96:[142]
910 [143] ** sprite data **
911 [131]48,255,12,97,255,134,199,255
912 [131]227,207,125,243,222,56,251,223
913 [131]125,251,255,255,255,255,187,255
914 [131]247,199,223,123,255,190,123,199
915 [131]190,127,131,254,63,255,252,51
916 [131]255,204,51,0,204,48,0,12
917 [131]48,0,12,48,0,12,48,0
918 [131]12,60,0,60,62,0,124,64
919 [131]96,255,6,97,255,134,199,255
920 [131]227,207,125,243,222,56,251,223
921 [131]125,251,255,255,255,255,187,255
922 [131]247,199,223,119,255,222,123,57
923 [131]190,127,131,254,63,239,252,51
924 [131]255,204,51,60,204,56,126,28
925 [131]24,126,24,28,126,56,12,126
926 [131]48,15,126,240,15,189,240,64
930 [131]0,127,0,1,255,192,3,255,224,3,227,224,7,217,240,7,223,240,7,217,240,3
931 [131]231,224,3,255,224,3,255,224,2,255,160,1,127,64,1,62,64,0
932 [131]156,128,0,156,128,0,73,0,0,73,0,0,62,0,0,62,0,0,62,0,0,28,0
939 [143] * data for machine langauge *
940 [131] 32,7,192,32,85,192,96,164,252,24,185,0,208,201,84,144,1898
941 [131] 36,201,204,176,40,136,32,174,192,45,16,208,208,10,185,0,1863
942 [131] 208,201,25,144,32,76,47,192,185,0,208,201,62,176,30,136,1923
943 [131] 192,24,144,214,96,169,0,153,0,207,76,21,192,169,200,153,2010
944 [131] 0,207,76,21,192,169,0,153,0,207,76,47,192,169,200,153,1862
945 [131] 0,207,76,47,192,24,164,252,32,213,192,185,0,208,190,0,1982
946 [131] 207,224,0,240,44,229,251,229,254,153,0,208,136,185,0,208,2568
947 [131] 190,0,207,224,0,240,36,229,251,153,0,208,201,245,144,11,2339
948 [131] 32,174,192,45,16,208,240,3,32,190,192,136,192,20,144,200,2016
949 [131] 96,101,251,101,254,153,0,208,76,108,192,101,251,153,0,208,2253
950 [131] 144,233,32,174,192,13,16,208,141,16,208,76,139,192,152,24,1960
951 [131] 105,2,106,170,169,1,202,240,4,42,202,208,252,96,152,24,1975
952 [131] 105,2,106,170,169,254,202,240,5,56,42,202,208,251,45,16,2073
953 [131] 208,141,16,208,96,166,253,230,253,189,0,176,41,3,133,254,2367
954 [131]169,146,141,21,3,169,0,141,20,3,96,-1,169,234,141,21,3,169,49,141,20,3
955 [131]96,-1,172,0,147,192,16,240,57,206,1,147,173,1,147,201,0,208,44,238,0,147
956 [131]169,0,141,4,212,169,31,141,5,212,169,0,141,6,212,169,17,141,4,212,185,0
957 [131]147,185,0,148,141,1,212,185,0,149,141,0,212,185,0,150,141,1,147,76,49
958 [131]234,169,0,141,0,147,141,4,212,24,144,242,-1
959 [143] ** data for music **
960 [131]28,49,31,165,16,195,18,209,21,31,22,96,25,30,29,233,17,195,19,239,23
961 [131]81,26,156
980 [131]08,+,c,d,/,a,+,c,13,/,d,e,12,a,08,f,14,d,08,c,12,e,08,d,15,d,08,c,g,e,d
981 [131]15,d,+,08,c,d,/,a,+,13,/,d,e,12,f,08,g,14,a,08,a,+,12,e,08,d,12,i,/,08
982 [131]a,+,12,e,08,d,12,i,/,08,a,+,f,e,d,15,a,08,c,d,/,a,+,c,/,13,d,e,12,a,08
983 [131]f,14,d,08,c,12,e,08,d,13,d,08,c,g,e,d,15,d,+,08,c,d,/,a,+,c,/,13,d,e,f
984 [131]g,08,a,b,+,c,/,a,g,f,12,a,08,d,12,g,08,c,15,f,f
985 [131]15,d,+,08,c,d,/,a,+,13,/,d,e,12,f,08,g,14,a,08,a,+,12,e,08,d,12,i,/,08
986 [131]a,+,12,e,08,d,12,i,/,08,a,+,f,e,d,15,a,08,c,d,/,a,+,c,/,13,d,e,12,a,08
987 [131]f,14,d,08,c,12,e,08,d,13,d,08,c,g,e,d,15,d,+,08,c,d,/,a,+,c,/,13,d,e,f
988 [131]g,08,a,b,+,c,/,a,g,f,12,a,08,d,12,g,08,c,15,f
989 [131]08,+,c,d,/,a,+,c,13,/,d,e,12,a,08,f,14,d,08,c,12,e,08,d,15,d,08,c,g,e,d
990 [131]60,g,g,*
991 [143] codes for graohics symbols
992 [143] "load"=clear/home :""=home
993 [143] ""=cursr down :"on"=cursr up
994 [143] ""=cursr right:"cmd"=cursr left
995 [143] ""=white:""=red:"open"=cyn.
996 [143] "clr"=pur. :"sys"=yel:""=blu.
997 [143] ""=grn. :"for"=cmd/1:"verify"=cmd/2
998 [143] ""=rvs/on:"wait"=rvs/off
999 [143] "(NULL)"=shft/-:"(NULL)"=shft/q:"(NULL)"=shft/n:"(NULL)"=shft/m:"and"=cmd/p