home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 February
/
Chip_2001-02_cd1.bin
/
bonus
/
demos
/
CS
/
kos
/
02
/
scene02.plg
< prev
Wrap
Text File
|
2000-12-15
|
1KB
|
41 lines
<const.plg>
#
cls=mixer(op=clear);
kosil_clk=oscilator(fce=saw,amp=25.5,freq=0.1);
kocka_clk=oscilator(fce=sinus,add=2,amp=2,freq=0.3);
#
r1=texture(in=sc01_p01.png);
r2=texture(in=sc01_p02.png);
r3=texture(in=sc01_p03.png);
#
clk=oscilator(fce=saw,amp=3,freq=0.05);
#clk=constant(k=0);
w1x=path(time=clk,num=3,y=0,-100,-200);
w2x=path(time=clk,num=3,y=0,-202,-404);
w3x=path(time=clk,num=3,y=100,-136,-373);
#
w1=window(win=r1,x=w1x,w=968,h=327);
w2t=mixer(in=w2,tex=r2,op=transparency);
w2=window(in=w1,win=w2t,x=w2x,w=1044,h=480);
#
mou_c=oscilator(fce=clock,freq=0.5);
mouf=oscilator(fce=saw,amp=2,freq=7);
moux=path(time=mou_c,type=closed,num=7,y=0,10,0,20,-10,20,-10);
mouy=path(time=mou_c,type=closed,num=7,y=10,30,20,-30,10,-20);
#
kosil=blender(in=w2,ani=kosil1.ani,x=[w2x+404-100],y=70,frame=kosil_clk);
kocka=blender(in=kosil,ani=kocka1.ani,x=[w2x+404+140],y=120,frame=kocka_clk);
pes=blender(in=kocka,ani=pes1.ani,x=[w2x+404+240],y=100,frame=kocka_clk);
#
w3t=mixer(in=w3,tex=r3,op=transparency);
w3=window(in=pes,win=w3t,x=w3x,y=210,w=1013,h=270);
#
moucha1=blender(in=w3,ani=moucha1.ani,
x=[moux+w3x-150-mouf/2],y=[mouy*2+mouf/4-50],frame=mouf);
moucha2=blender(in=moucha1,ani=moucha2.ani,
x=[mouy+w3x-200+mouf/4],y=[moux*2-mouf/2-25],frame=mouf);
#
okrajt=texture(in=okraj.png);
okraj=mixer(in=moucha2,tex=okrajt,op=transparency);
output:screen(in=okraj,xres=640,yres=480,pal=my.pal);
#