home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1993 February
/
64er_Magazin_93-02_1993_Markt__Technik_de_Side_A.d64
/
basic-game
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
1KB
|
61 lines
100 rem spritedemo by leo - 64'er/93
110 v=53248:rem vic-basis
120 ifll=0thenll=1:load"kugel",8,1
130 gosub550:rem spielfeld printen
140 :
150 rem variablen initialisieren
160 :
170 li=26:re=214:ob=52:un=216:s1=190
180 x=li:y=ob:d=1:t=1:s=1
190 :
200 rem sprites initialisieren
210 :
220 pokev,li:pokev+1,ob:rem sprite 1
230 rem setzten
240 :
250 pokev+3,223:pokev+2,s1:rem sprite 2
260 rem setzten
270 :
280 pokev+21,3:pokev+28,1:rem sprites an+multicolor
290 :
300 poke2040,255:poke2041,254
310 :
320 pokev+39,11:pokev+40,1:rem sprite-
330 pokev+37,1:pokev+38,12:rem farben
340 :
350 rem kugel bewegen
360 :
370 pokev+30,0:x=x+d:y=y+t
380 ifx=li or x=re thend=d*(-1):goto410
390 ify=ob thent= 1:goto410
400 ify>un then670
410 pokev,x:pokev+1,y
420 :
430 rem joystick-abfrage
440 :
450 j=peek(56320)
460 ifj=123 then s=-1:goto490
470 ifj=119 then s= 1:goto490
480 goto370
490 s1=s1+s:ifs1=li-1thens1=li
500 ifs1=196 thens1=195
510 pokev+2,s1:goto370
520 :
530 rem sub routine kasten zeichnen
540 :
550 print"[147][207][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][208]"
560 fori=1to20
570 print"[165] [167]"
580 next
590 print"[180] [167]"
600 pokev+32,0:pokev+33,0
610 fori=0to63:poke254*64+i,0 :next
620 poke254*64,255:poke254*64+1,255:poke254*64+2,255
630 return
640 :
650 rem kollision pruefen
660 :
670 c0=peek(v+30)and3:rem kollisions -
680 rem pruefen
690 if c0<>0 then t=-1:goto370