home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1989 September
/
1989-09.d64
/
animator.demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
69 lines
100 a=-60:c=-50:d=60:e=50:f=20:g=12
110 h=11:j=-64:k=-55:l=-36:m=-35:n=-30
120 p=-20:q=30:r=19:s=16:t=15:u=14:w=13
130 y=-12:z=10:(NULL):(NULL)1:rem house
140 (NULL) c,a,c,c,z,c,c,d,0,c,z,e,c,a,e
150 (NULL) e,a,e,e,z,e,e,d,0,e,z,c,e,a,c
160 (NULL) k,0,a,k,d,0,k,0,d,55,0,d
170 (NULL) 55,d,0,55,0,a,-11,a,c,-11,p,c
180 (NULL) h,p,c,h,a,c,e,m,p,e,p,p
190 (NULL) e,-5,p,e,-5,0,e,-5,f,e,p,f
200 (NULL) e,m,f,e,m,0
210 (NULL) 4,2,2,h,w,g,t,u
220 (NULL) 4,2,2,h,s,t,g,h
230 (NULL) 5,1,1,h,5,4,3,2,1
240 (NULL) 4,1,1,h,6,7,4,5
250 (NULL) 5,1,1,h,z,9,8,7,6
260 (NULL) 4,7,2,7,21,23,25,27
270 (NULL) 2,0,3,5,22,26
280 (NULL) 2,0,3,5,24,28
290 (NULL) 4,1,1,h,1,2,9,z
300 (NULL) 4,6,2,7,17,18,r,f
310 (NULL) 4,2,2,h,h,g,t,s
320 (NULL) 4,2,2,h,u,t,g,w
330 (NULL)2:rem road
340 (NULL) j,a,j,j,a,63,63,a,63,63,a,j
350 (NULL) n,a,3,q,a,3,q,a,-3,n,a,-3
360 (NULL) 4,0,3,2,1,2,3,4
370 (NULL) 4,1,1,2,5,6,7,8
380 (NULL)3:rem plane
390 (NULL) d,0,0,-10,n,0,a,n,0,a,q,0
400 (NULL) -10,q,0,a,q,q,a,n,q
410 (NULL) 3,0,0,h,5,6,4
420 (NULL) 3,0,0,h,3,7,2
430 (NULL) 5,0,0,3,5,4,3,2,1
440 (NULL) 3,0,0,h,4,6,5
450 (NULL) 3,0,0,h,2,7,3
460 (NULL)4:rem square
470 (NULL) d,a,d,d,d,d,d,d,a,d,a,a
480 (NULL)4,1,1,3,1,2,3,4
680 clr:(NULL):(NULL)11,15,0
690 def fn r(x)=int(x*rnd(0))
740 forx=-250to400step5
750 (NULL)4,64,0,x,0,x,500:next:(NULL)
760 forx=-250to400step5
770 (NULL)4,0,0,x,x,0,500:next:(NULL)
780 forx=-250to400step5
790 (NULL)4,x,x,0,0,x,500:next:(NULL)
800 forx=1000to0step-32
810 (NULL)4,0,104,0,-300+x,0,2*x+500
820 next:forx=1000to0step-100
830 (NULL)1,0,-30,0,-400+x,0,2*x
840 next:forx=1000to0step-50
850 (NULL)2,0, 45,0,-200+x,0,2*x
860 next:r=150:w=1/8:cx=80:cy=100
870 dims(30),c(30):forx=0to30
880 q=12*x*(NULL)/180:s(x)=r*sin(q)
890 c(x)=1.5*r*cos(q):next
900 data 4,9,8,2,10,7,13,3,14,6
910 forx=0to9:readf(x):next
920 (NULL):(NULL) 5,1,0:forx=0to29
930 a=s(x):b=c(x):c=s(x+1):d=c(x+1)
940 (NULL) 4,f(n),m+1,3,cx+a,cy+b,cx+c,cy+d,cx+c*w,cy+d*w,cx+a*w,cy+b*w
950 n=n+1:m=(m+1)and1:ifn=10thenn=0
960 nextx:(NULL):forx=-250to250step5
970 (NULL) 3,x,0,0,x,-80,400
980 (NULL):nextx:forx=250to-400step-5
990 (NULL) 3,-x,0,128,x,80,400
1000 (NULL):nextx:(NULL)