home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
commodore-users-of-norman
/
CUON_11_(11-1984).d64
/
kaliedo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
782b
|
43 lines
100 REM:KALIEDO
110 REM:COPYRIGHT 1983
120 R=RND(-TI):PRINT CHR$(147)
130 A=19:B=12:S=1024:D=-1:C=55296
135 M=63:POKE53280,1:POKE53281,0
140 DIMR(6)
150 FORJ=0TO6
160 T=65
165 IFRND(1)>.5THENT=T+128
170 R(J)=INT(M*RND(1))+T:NEXT
180 D=1:K=1:L=12:IFD<0THENK=12:L=1
200 FORJ=KTOLSTEPD
210 X=A+J:Y=B:GOSUB900
220 X=A-J:GOSUB900
230 X=A:Y=B+J:GOSUB900
240 Y=B-J:GOSUB900
250 X=A+J:Y=B+J:GOSUB900
260 X=A-J:Y=B-J:GOSUB900
270 Y=B+J:GOSUB900
280 X=A+J:Y=B-J:GOSUB900
790 NEXT
795 FORJ=1TO2000:NEXTJ
800 GOTO150
900 C1=INT(RND(1)*14)+1
905 POKEC+40*Y+X,C1
910 POKES+40*Y+X,R(0)
915 IFJ=1THEN RETURN
920 W=INT(J*.5):T=J-W-1
930 FORN=1TOW
940 IFX=ATHENY2=Y:X2=X+N:GOSUB2000
945 IFX=ATHENX2=X-N:GOSUB2000:NEXT:RETURN
950 IFY=BTHENX2=X:Y2=Y+N:GOSUB2000
955 IFY=BTHENY2=Y-N:GOSUB2000:NEXT:RETURN
970 Y2=Y:IFX<ATHENX2=X+N:GOSUB2000:GOTO990
980 X2=X-N:GOSUB2000
990 X2=X:IFY<BTHENY2=Y+N:GOSUB2000:GOTO1010
1000 Y2=Y-N:GOSUB2000
1010 NEXT
1020 RETURN
2000 POKES+40*Y2+X2,R(N)
2005 POKEC+40*Y2+X2,C1
2010 RETURN