home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disc 18
/
Commodore_Disc_18_19xx_-_de.d64
/
kontakte
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
16KB
|
897 lines
10 rem kontakte ******************c64
20 rem (p)11/87 by commodore welt ***
30 rem ******************************
40 rem (c)10/87 by g. kramer ***
50 rem emsdetten ***
60 rem ******************************
70 rem basic 2.0 ***
80 rem c64 + 1530/1541/1571 ***
90 rem ******************************
95 poke646,1:printchr$(147)"bitte warten..."
100 gosub7170
110 gosub4460
120 gosub6900
130 gosub6560
140 gosub5600
150 gosub3050
160 printchr$(147)
170 print"ein neues spiel ?[160](j/n)"
180 poke198,0
190 geta$
200 ifa$<>"j"then300
210 fori=1to8
220 forj=1to6
230 ms(i,j)=0
240 nextj,i
250 gosub7740
260 ru=0
270 az=0
280 gosub4460
290 goto130
300 ifa$<>"n"then190
310 pokev+21,0
320 gosub4760
330 poke53280,14
340 poke53281,6
350 printchr$(154)chr$(147)
360 end
370 ***************************
380 *** spielstand anzeigen ***
390 ***************************
400 printchr$(19)chr$(159)
410 printtab(24)e$(ms(ru,0))
420 fori=1toan
430 pokeze,i*3-2:pokesp,35:syscu
440 a=154
450 ifms(i,5)=1thena=150
460 ifi=ruthena=153
470 a$=str$(ms(i,1))
480 a$="....."+right$(a$,len(a$)-1)
490 printchr$(a)i
500 printtab(33)right$(a$,6)
510 next
520 a$=str$(ms(ru,4)+1)
530 a$=str$(ab*3)+" x"+a$
540 a$=right$(" "+a$,8)
550 pokeze,2:pokesp,24:syscu
560 printchr$(153)a$
570 return
580 *******************
590 *** acht karten ***
600 *******************
610 fori=1to8
620 ifru=1then660
630 a1=ms(i,3)
640 gosub900
650 goto670
660 gosub890
670 ms(i,2)=a1
680 ms(i,3)=a1
690 a1=i*3-3
700 a2=5
710 gosub770
720 next
730 return
740 **********************
750 *** setzen zeichen ***
760 **********************
770 pokef+a1,a2
780 pokeb+a1,ze(a0,a,1)
790 pokef+a1+1,a2
800 pokeb+a1+1,ze(a0,a,2)
810 pokef+a1+41,a2
820 pokeb+a1+41,ze(a0,a,3)
830 pokef+a1+40,a2
840 pokeb+a1+40,ze(a0,a,4)
850 return
860 ******************
870 *** auswaehlen ***
880 ******************
890 a1=int(rnd(0)*136)
900 a0=int(a1/4)
910 a=a1-4*a0+1
920 a0=a0+1
930 return
940 *********************
950 *** setzen sprite ***
960 *********************
970 pokev+21,peek(v+21)and254
980 ifpu=255then1020
990 pokev+1,50
1000 pokev,sn*24
1010 poke2040,13
1020 a0=int(ms(sn,2)/4)
1030 a1=ms(sn,2)-4*a0+1
1040 a0=a0+1
1050 poke251,ze(a0,a1,1)
1060 poke252,ze(a0,a1,2)
1070 poke253,ze(a0,a1,3)
1080 poke254,ze(a0,a1,4)
1090 sys51289
1100 pokev+39,7
1110 pokev+21,peek(v+21)or1
1120 return
1130 ************************
1140 *** eingabe abfragen ***
1150 ************************
1160 ei=0
1170 geta$
1180 ifa$<>chr$(140)then1210
1190 ei=140
1200 goto1350
1210 ifms(ru,0)<>3then1250
1220 ifa$=""then1350
1230 ei=asc(a$)
1240 goto1350
1250 poke56322,224
1260 a=peek(56320)
1270 ifms(ru,0)=1thena=peek(56321)
1280 poke56322,255
1290 if(aand1)=0thenei=145
1300 if(aand2)=0thenei=17
1310 if(aand4)=0thenei=157
1320 if(aand8)=0thenei=29
1330 if(aand16)=0thenei=ei+32
1340 ifei=177thenei=94
1350 return
1360 ********************
1370 *** drehen karte ***
1380 ********************
1390 a0=int(ms(sn,2)/4)
1400 a1=ms(sn,2)-4*a0
1410 a1=a1+1
1420 ifa1=4thena1=0
1430 a1=a1+4*a0
1440 ms(sn,2)=a1
1450 gosub970
1460 a1=ms(sn,2)
1470 gosub900
1480 a2=5
1490 a1=sn*3-3
1500 gosub770
1510 return
1520 *********************
1530 *** karte bewegen ***
1540 *********************
1550 fori=1to200:next
1560 pokev+21,peek(v+21)or1
1570 gosub1160
1580 ifei<>0then1630
1590 fori=1to200:next
1600 pokev+21,peek(v+21)and254
1610 gosub1160
1620 ifei=0then1550
1630 pokev+21,peek(v+21)or1
1640 return
1650 *********************
1660 *** karte ablegen ***
1670 *********************
1680 a=int((a-24)/8+.5)
1690 a0=(a0-50)/8
1700 a2=40*a0+a
1710 gosub2210
1720 ifpu=0then2170
1730 a3=5
1740 if((a+a0)and2)=0thena3=13
1750 a1=ms(sn,2)
1760 gosub900
1770 a1=a2
1780 a2=a3
1790 gosub770
1800 a=0:a0=0
1810 a1=sn*3-3
1820 gosub770
1830 ms(sn,2)=255
1840 gosub7920
1850 fori=1topu
1860 a=(ms(ru,4)+1)*ab
1870 ms(ru,1)=ms(ru,1)+a
1880 t1=(i*150+3000)
1890 gosub7980
1900 gosub2970
1910 next
1920 gosub7920
1930 ms(ru,6)=ms(ru,6)+1
1940 a0=ms(ru,6)-1
1950 ifa0<130then2170
1960 a=az*4+ab-a0
1970 a=(a0-129)*100-10*a
1980 ifa<10then2170
1990 b$="bonus"+str$(a)
2000 t1=1000
2010 fori=1toastep10
2020 pokeze,2:pokesp,0:syscu
2030 printchr$(5)b$
2040 ms(ru,1)=ms(ru,1)+10
2050 t1=25+t1
2060 gosub7980
2070 printchr$(145)chr$(30)b$
2080 gosub2970
2090 next
2100 gosub7920
2110 a$=""
2120 fori=1to11
2130 a$=a$+chr$(32)
2140 next
2150 pokeze,2:pokesp,0:syscu
2160 printa$
2170 return
2180 **********************
2190 *** pruefen ablage ***
2200 **********************
2210 pu=0
2220 ifpeek(b+a2)<>32then2610
2230 a$="0"
2240 a1=peek(b+sn*3-3)
2250 a3=peek(b+a2-1)
2260 a4=peek(f+a2-1)
2270 ifa3<>32thengosub2670
2280 ifpu=255then2610
2290 a3=peek(b+a2-40)
2300 a4=peek(f+a2-40)
2310 ifa3<>32thengosub2850
2320 ifpu=255then2610
2330 a1=peek(b+sn*3-2)
2340 a3=peek(b+a2-39)
2350 a4=peek(f+a2-39)
2360 ifa3<>32thengosub2850
2370 ifpu=255then2610
2380 a3=a1
2390 a1=peek(b+a2+2)
2400 a4=peek(f+a2+2)
2410 ifa1<>32thengosub2670
2420 ifpu=255then2610
2430 a3=peek(b+sn*3+38)
2440 a1=peek(b+a2+42)
2450 a4=peek(f+a2+42)
2460 ifa1<>32thengosub2670
2470 ifpu=255then2610
2480 a1=peek(b+a2+81)
2490 a4=peek(f+a2+81)
2500 ifa1<>32thengosub2850
2510 ifpu=255then2610
2520 a3=peek(b+sn*3+37)
2530 a1=peek(b+a2+80)
2540 a4=peek(f+a2+80)
2550 ifa1<>32thengosub2850
2560 ifpu=255then2610
2570 a1=a3
2580 a3=peek(b+a2+39)
2590 a4=peek(f+a2+39)
2600 ifa3<>32thengosub2670
2610 ifpu=255thenpu=0
2620 ifa$="0"thenpu=0
2630 return
2640 ************************
2650 *** links und rechts ***
2660 ************************
2670 if(a1=203)or(a1=201)then2720
2680 ifa1=192then2720
2690 if(a3=192)or(a3=202)then2740
2700 ifa3=213then2740
2710 goto2810
2720 if(a3=202)or(a3=213)then2760
2730 ifa3=192then2760
2740 pu=255
2750 goto2810
2760 pu=pu+3
2770 if(a4and15)=2then2800
2780 a$="1"
2790 goto2810
2800 ms(ru,4)=ms(ru,4)+10
2810 return
2820 **********************
2830 *** oben und unten ***
2840 **********************
2850 if(a1=203)or(a1=202)then2900
2860 ifa1=194then2900
2870 if(a3=201)or(a3=213)then2920
2880 ifa3=194then2920
2890 goto2930
2900 if(a3=201)or(a3=213)then2760
2910 ifa3=194then2760
2920 pu=255
2930 return
2940 ************************
2950 *** zaehler ausgeben ***
2960 ************************
2970 pokeze,ru*3-1:pokesp,33:syscu
2980 a$=str$(ms(ru,1))
2990 a$="....."+right$(a$,len(a$)-1)
3000 printchr$(153)right$(a$,6)
3010 return
3020 ********************
3030 *** spiel laeuft ***
3040 ********************
3050 ru=ru+1
3060 ab=1
3070 ifru>anthenru=1
3080 ifru=1thenaz=az+1
3090 ifms(ru,6)>144thenms(ru,5)=1
3100 a=0
3110 fori=1toan
3120 a=a+ms(i,5)
3130 next
3140 ifa=anthen4370
3150 ifru=1then3170
3160 ifms(ru,5)=1then4310
3170 gosub610
3180 ifms(ru,5)=1then4310
3190 gosub400
3200 poke251,0
3210 poke252,220+4*ru
3220 poke253,161
3230 poke254,4
3240 sys51234
3250 sn=1
3260 gosub970
3270 pokeze,2:pokesp,24:syscu
3280 a$=str$(ms(ru,4)+1)
3290 a$=str$(ab*3)+" x"+a$
3300 a$=right$(" "+a$,8)
3310 printchr$(153)a$
3320 gosub1550
3330 ifei<>94then3370
3340 ms(ru,4)=ms(ru,4)-5+ab
3350 ifms(ru,4)<0thenms(ru,4)=0
3360 goto4310
3370 ifei<>140then3540
3380 poke198,0
3390 pokeze,2:pokesp,24:syscu
3400 printchr$(5)"ende?j/n"
3410 t1=3000
3420 gosub7980
3430 geta$
3440 t1=5000
3450 gosub7980
3460 pokeze,2:pokesp,24:syscu
3470 printchr$(144)"ende?j/n"
3480 if(a$<>"n")and(a$<>"j")then3390
3490 gosub7920
3500 ifa$="j"then3520
3510 goto3320
3520 ms(ru,5)=1
3530 goto4310
3540 ifei<>32then3570
3550 gosub1390
3560 goto3320
3570 ifei<>29then3620
3580 sn=sn+1
3590 ifsn=9thensn=1
3600 ifms(sn,2)=255then3580
3610 goto3260
3620 ifei<>157then3670
3630 sn=sn-1
3640 ifsn=0thensn=8
3650 ifms(sn,2)=255then3630
3660 goto3260
3670 ifei<>17then3320
3680 pokev,144
3690 pokev+1,162
3700 gosub1550
3710 a=peek(v)
3720 a0=peek(v+1)
3730 ifei<>94then3790
3740 ms(ru,1)=ms(ru,1)-5*az
3750 ifms(ru,1)<0thenms(ru,1)=0
3760 gosub7810
3770 gosub2970
3780 goto4220
3790 ifei<>17then3850
3800 ifa0=226then3700
3810 fori=a0toa0+16
3820 pokev+1,i
3830 next
3840 goto3700
3850 ifei<>29then3930
3860 ifa=255then3700
3870 a1=16
3880 ifa=240thena1=15
3890 fori=atoa+a1
3900 pokev,i
3910 next
3920 goto3700
3930 ifei<>157then4010
3940 ifa=32then3700
3950 a1=16
3960 ifa=255thena1=15
3970 fori=atoa-a1step-1
3980 pokev,i
3990 next
4000 goto3700
4010 ifei<>145then4070
4020 ifa0=82then3700
4030 fori=a0toa0-16step-1
4040 pokev+1,i
4050 next
4060 goto3700
4070 ifei<>32then3700
4080 gosub1680
4090 ifpu>0then4180
4100 pu=255
4110 gosub1390
4120 ms(ru,1)=ms(ru,1)-7*az
4130 ifms(ru,1)<0thenms(ru,1)=0
4140 gosub7810
4150 gosub2970
4160 pu=0
4170 goto3700
4180 pokev+21,peek(v+21)and254
4190 sn=sn+1
4200 ifsn=9thensn=1
4210 ifms(sn,2)=255then4190
4220 ab=ab+1
4230 ms(ru,4)=ms(ru,4)-1
4240 ifms(ru,4)<0thenms(ru,4)=0
4250 ifab<5then3260
4260 pokev+21,0
4270 fori=0to22
4280 pokef+i,0
4290 pokef+40+i,0
4300 next
4310 poke251,161
4320 poke252,4
4330 poke253,0
4340 poke254,220+4*ru
4350 sys51234
4360 goto3050
4370 pokeze,2:pokesp,0:syscu
4380 printchr$(5)"spielende - (taste)"
4390 geta$:ifa$=""then4390
4400 gosub7920
4410 gosub5020
4420 return
4430 ***********************
4440 *** lesen highscore ***
4450 ***********************
4460 open15,8,15
4470 open3,8,3,"0:h.s. kontakte,u,r"
4480 input#15,a,a$,a0,a1
4490 ifa=0thenhs=1:goto4620
4500 close3:close15
4510 printchr$(147)a;a$;a0;a1
4520 print
4530 print"wenn highscore vorhanden,"
4540 print"diskette einlegen und"
4550 print"'j' eingeben."
4560 print
4570 print"sonst 'n' eingeben."
4580 geta$
4590 ifa$="j"then4460
4600 ifa$<>"n"then4580
4610 hs=0
4620 a$=" "
4630 a=0
4640 fori=1to20
4650 ifhs=0then4670
4660 input#3,a$,a
4670 hs$(i)=a$
4680 hs(i)=a
4690 next
4700 close3:close15
4710 ifhs=1thengosub4760
4720 return
4730 **************************
4740 *** anzeigen highscore ***
4750 **************************
4760 printchr$(147)chr$(30)
4770 printspc(15)"ehrentafel"
4780 print:print
4790 a$=""
4800 fori=1to7
4810 a$=a$+chr$(32)
4820 next
4830 fori=1to10
4840 a0$=right$(a$+str$(hs(i)),7)
4850 a1$=right$(a$+str$(hs(i+10)),7)
4860 ifhs(i)=0thena0$=a$
4870 ifhs(i+10)=0thena1$=a$
4880 printspc(6)hs$(i)spc(1)a0$;
4890 printspc(1)chr$(122)chr$(122);
4900 printspc(1)hs$(i+10)spc(1)a1$
4910 next
4920 pokeze,22:pokesp,0:syscu
4930 print"weiter = return"
4940 poke198,0
4950 geta$
4960 ifa$<>chr$(13)then4950
4970 printchr$(147)
4980 return
4990 ************************
5000 *** update highscore ***
5010 ************************
5020 printchr$(147)
5030 pokev+21,0
5040 pokeze,10:pokesp,13:syscu
5050 print"namen eingeben"
5060 print
5070 fori=1toan
5080 ifms(i,1)<hs(20)then5300
5090 a0$=""
5100 poke198,0
5110 printspc(13)"spieler"i" = ";
5120 forj=1to4
5130 geta$
5140 ifa$=chr$(13)thenj=4:goto5190
5150 ifa$<chr$(35)then5130
5160 ifa$>chr$(90)then5130
5170 printa$;
5180 a0$=a0$+a$
5190 next
5200 forj=19to1step-1
5210 hs$(j+1)=hs$(j)
5220 hs(j+1)=hs(j)
5230 a=j+1
5240 ifms(i,1)>hs(j)thena=j
5250 hs(a)=ms(i,1)
5260 hs$(a)=left$(a0$+" ",4)
5270 ifa<>jthenj=0
5280 next
5290 print
5300 next
5310 gosub4760
5320 printchr$(147)
5330 ifhs=0then5370
5340 open1,8,15
5350 print#1,"s:h.s. kontakte"
5360 close1
5370 open15,8,15
5380 open3,8,3,"0:h.s. kontakte,u,w"
5390 poke198,0
5400 input#15,a,a$,a0,a1
5410 ifa=0then5510
5420 close3:close15
5430 printchr$(147)a,a$,a0,a1
5440 print"wenn highscore gewuenscht,"
5450 print"diskette einlegen und"
5460 print"'j' eingeben."
5470 print"sonst 'n' eingeben."
5480 geta$:ifa$="n"then5560
5490 ifa$="j"then5340
5500 goto5480
5510 fori=1to20
5520 ifhs(i)=0thenhs$(i)=" "
5530 print#3,hs$(i);chr$(13);hs(i)
5540 next
5550 close3:close15
5560 return
5570 *********************
5580 *** bild aufbauen ***
5590 *********************
5600 printchr$(147)
5610 gosub7810
5620 pokef+120,4
5630 pokeb+120,85
5640 a=121:a0=150
5650 a1=4:a2=64
5660 a3=1
5670 gosub6480
5680 pokef+151,4
5690 pokeb+151,73
5700 a=191:a0=951
5710 a2=66:a3=40
5720 gosub6480
5730 pokef+991,4
5740 pokeb+991,75
5750 a=990:a0=961
5760 a2=64:a3=-1
5770 gosub6480
5780 pokef+960,4
5790 pokeb+960,74
5800 a=920:a0=160
5810 a2=66:a3=-40
5820 gosub6480
5830 pokef+32,5
5840 pokeb+32,85
5850 a=33:a0=38
5860 a1=5
5870 a2=64:a3=1
5880 gosub6480
5890 pokef+39,5
5900 pokeb+39,73
5910 a=79:a0=an*120-1
5920 a2=66:a3=40
5930 gosub6480
5940 pokef+a0+40,5
5950 pokeb+a0+40,75
5960 a=a0+39:a0=a0+34
5970 a2=64:a3=-1
5980 gosub6480
5990 pokef+a0-1,5
6000 pokeb+a0-1,74
6010 a=a0-41:a0=72
6020 a2=66:a3=-40
6030 gosub6480
6040 a0$=chr$(171)
6050 fori=1to6
6060 a0$=a0$+chr$(99)
6070 next
6080 a0$=a0$+chr$(179)
6090 fori=1toan
6100 pokeze,3*i-2:pokesp,35:syscu
6110 printi
6120 a$=str$(ms(i,1))
6130 a$="....."+right$(a$,len(a$)-1)
6140 printtab(33)right$(a$,6)
6150 ifi=anthen6170
6160 printtab(32)a0$
6170 next
6180 printchr$(19)chr$(159);
6190 printtab(24)"eingabe:"
6200 gosub890
6210 a1=575
6220 a2=13
6230 gosub770
6240 a2=2
6250 gosub890
6260 a1=243
6270 gosub770
6280 gosub890
6290 a1=267
6300 gosub770
6310 gosub890
6320 a1=803
6330 gosub770
6340 gosub890
6350 a1=827
6360 gosub770
6370 fori=1toan
6380 poke251,161
6390 poke252,4
6400 poke253,0
6410 poke254,220+4*i
6420 sys51234
6430 next
6440 return
6450 *********************
6460 *** strich ziehen ***
6470 *********************
6480 fori=atoa0stepa3
6490 pokef+i,a1
6500 pokeb+i,a2
6510 next
6520 return
6530 *******************
6540 *** anfangsbild ***
6550 *******************
6560 pokeze,12:pokesp,12:syscu
6570 printchr$(153)"wieviele spieler?"
6580 geta$
6590 if(a$<"1")or(a$>"8")then6580
6600 an=val(a$)
6610 pokeze,14:pokesp,12:syscu
6620 printan"spieler - ok?"
6630 geta$:ifa$="j"then6670
6640 ifa$<>"n"then6630
6650 pokezl,14:syslo
6660 goto6580
6670 printchr$(147)chr$(30)
6680 printtab(12)"bitte eingeben:"
6690 print
6700 printtab(12)"1 = joystick 1"
6710 printtab(12)"2 = joystick 2"
6720 printtab(12)"3 = tastatur"
6730 printchr$(156)
6740 fori=1toan
6750 printtab(12)"spieler"i" = ";
6760 poke198,0
6770 geta$
6780 if(a$<"1")or(a$>"3")then6770
6790 ms(i,0)=val(a$)
6800 printe$(ms(i,0))
6810 next
6820 printchr$(30)"in ordnung?"
6830 geta$:ifa$="j"then6860
6840 ifa$="n"then6670
6850 goto6830
6860 return
6870 *************
6880 *** titel ***
6890 *************
6900 poke2040,13
6910 printchr$(147)chr$(158)
6920 gosub8430
6930 sys51200
6940 printchr$(147)
6950 pokev+23,1:pokev+29,1
6960 a$="":a0$=""
6970 fori=1to14
6980 a$=a$+chr$(32)
6990 next
7000 fa=10:r=128
7010 forz1=1to3
7020 z=z1:gosub8110
7030 nextz1
7040 a$="kontakte"
7050 z=2
7060 gosub8110
7070 pokeze,6:pokesp,12:syscu
7080 print"ein programm von"
7090 a$="guenter kramer"
7100 z=8:fa=3:a0$="s":r=0
7110 pokev+23,0:pokev+29,0
7120 gosub8110
7130 return
7140 ********************
7150 *** anfangswerte ***
7160 ********************
7170 v=53248 :rem vic
7180 t=54272 :rem sid
7190 n=49152 :rem zeichen
7200 f=55296 :rem farbram
7210 b=1024 :rem bildram
7220 cu=58640 :rem cursor
7230 ze=214 :rem cu-zeile
7240 sp=211 :rem cu-spalte
7250 zl=781 :rem loesch ze
7260 lo=59903 :rem sys zl
7270 dime$(8) :rem eingabe
7280 dimze(34,4,4) :rem zeichen
7290 dimms(8,6) :rem spielwerte
7300 dimhs$(20),hs(20)
7310 poke53280,0 :rem randfarbe
7320 poke53281,0 :rem hintergrund
7330 a=rnd(-ti) :rem zufall
7340 e$(1)="joy 1"
7350 e$(2)="joy 2"
7360 e$(3)="tastatur"
7370 pokev+21,0
7380 pokev+39,1
7390 a=peek(61)+256*peek(62)
7400 poke65,aand255
7410 poke66,a/256
7420 fori=1to34
7430 fori0=1to4
7440 reada
7450 ze(i,1,i0)=aor128
7460 fori1=2to4
7470 ifa=64thena=66:goto7530
7480 ifa=66thena=64:goto7530
7490 ifa=85thena=73:goto7530
7500 ifa=73thena=75:goto7530
7510 ifa=75thena=74:goto7530
7520 ifa=74thena=85
7530 a0=i0+i1-1
7540 ifa0>4thena0=a0-4
7550 ze(i,i1,a0)=aor128
7560 nexti1,i0,i
7570 data32,32,85,32,32,32,85,73
7580 data32,32,64,85,32,32,64,64
7590 data32,32,73,64,32,74,85,73
7600 data32,74,64,85,32,74,64,64
7610 data32,74,73,64,32,66,75,64
7620 data32,85,75,64,74,75,32,32
7630 data74,75,32,73,74,75,85,32
7640 data74,75,85,73,74,64,64,85
7650 data74,64,64,64,74,64,73,64
7660 data66,74,64,74,85,75,85,75
7670 data75,32,85,32,75,32,64,85
7680 data75,32,64,64,75,32,73,64
7690 data75,74,85,73,75,74,64,85
7700 data75,74,64,64,75,74,73,64
7710 data75,85,75,64,64,75,64,85
7720 data64,75,64,64,64,64,64,64
7730 data73,32,64,74,73,74,64,74
7740 fori=1to4
7750 ze(0,0,i)=32
7760 next
7770 return
7780 ************
7790 *** (NULL)ng ***
7800 ************
7810 gosub7920
7820 poket+1,8:poket,180:poket+5,12
7830 poket+8,15:poket+7,247
7840 poket+15,13:poket+14,10
7850 poket+12,12:poket+19,12
7860 poket+24,15:poket+4,23
7870 poket+11,23:poket+18,23
7880 return
7890 ********************
7900 *** loeschen sid ***
7910 ********************
7920 fort0=0to24:poket+t0,0:nextt0
7930 return
7940 **************
7950 *** heulen ***
7960 **************
7970 gosub7920
7980 poket,t1-256*int(t1/256)
7990 poket+1,int(t1/256):poket+6,240
8000 poket+24,15:poket+4,33:return
8010 **************
8020 *** schuss ***
8030 **************
8040 gosub7920
8050 poket+5,9:poket+1,21
8060 poket+24,15:poket+4,129
8070 return
8080 **********************
8090 *** sprites laufen ***
8100 **********************
8110 y=z*8+50:s=13*64
8120 z=19+b+z*40-len(a$)/2
8130 fori=1tolen(a$)
8140 pokev+1,230
8150 pokev,0:t1=34*256
8160 a=asc(mid$(a$,i,1))
8170 ifa=32then8350
8180 ifa>63thena=a-64
8190 ifa0$="s"then8340
8200 a0=168-(4*(len(a$)+1and254))+i*8
8210 forj=stos+62:pokej,0:nextj
8220 forj=0to7
8230 pokes+3*j+1,peek(n+j+a*8)
8240 nextj:t1=0:gosub7970
8250 pokev+21,1
8260 forj=0toa0step4
8270 pokev,jand255
8280 pokev+16,int(j/256)
8290 poket+1,jand255:nextj
8300 forj=230toystep-2
8310 pokev+1,j
8320 poket+1,j-34
8330 nextj
8340 gosub8040
8350 pokez+i+f-b,fa
8360 pokez+i,a+r
8370 pokev+21,0
8380 nexti
8390 return
8400 *************************
8410 *** laden zeichensatz ***
8420 *************************
8430 a=peek(61)+256*peek(62)
8440 poke65,aand255
8450 poke66,a/256
8460 a0=0
8470 fori=51200to51385
8480 reada
8490 pokei,a
8500 a0=a0+a
8510 next
8520 ifa0=26682then8550
8530 print"datafehler"
8540 end
8550 return
8560 data120,169,51,133,1,169
8570 data208,160,0,133,96,132
8580 data95,132,90,132,88,169
8590 data216,133,91,169,200,133
8600 data89,32,191,163,169,55
8610 data133,1,88,96,120,169
8620 data53,133,1,162,0,160
8630 data0,177,251,145,253
8640 data200,192,30,208,247,24
8650 data165,251,105,40,133,251
8660 data165,252,105,0,133,252
8670 data24,165,253,105,40,133
8680 data253,165,254,105,0,133
8690 data254,232,224,20,208,214
8700 data169,55,133,1,88,96
8710 data165,254,72,165,253,72
8720 data165,252,133,253,169,0
8730 data133,252,133,254,160,3
8740 data6,251,38,252,6,253
8750 data38,254,136,208,245,165
8760 data252,9,192,133,252,165
8770 data254,9,192,133,254,160
8780 data0,162,0,177,251,157
8790 data64,3,177,253,157,65
8800 data3,232,232,232,200,192
8810 data8,208,238,173,137,200
8820 data201,64,208,17,104,133
8830 data251,104,133,253,160,89
8840 data140,137,200,136,140,142
8850 data200,208,179,160,64,140
8860 data137,200,200,140,142,200,96
8870 *** kontakte ************c64
8880 *** ***
8890 *** 38911 bytes speicher ***
8900 *** 15539 bytes programm ***
8910 *** 252 bytes variable ***
8920 *** 3449 bytes arrays ***
8930 *** 7507 bytes strings ***
8940 *** 12164 bytes frei ***
8950 ****************************