home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 February / Chip_2001-02_cd1.bin / bonus / demos / CS / kos / 03 / scene03.plg < prev    next >
Text File  |  2000-12-15  |  1KB  |  35 lines

  1. <const.plg>
  2. #
  3. clk=oscilator(fce=clock);
  4. #
  5. bkg=texture(in=scene03.png);
  6. bkgcpy=mixer(tex=bkg,op=copy);
  7. #
  8. kocka_p=path(time=clk,type=linear_opened,num=4,y=0,2,3,4);
  9. kocka_s=oscilator(add=4.5,amp=0.5,freq=-0.1);
  10. kocka_clk=selector(time=clk,type=timer,
  11. num=2,t1=0,t2=3,v1=kocka_p,v2=kocka_s);
  12. kocka=blender(in=bkgcpy,ani=kocka2m.ani,frame=kocka_clk);
  13. #
  14. kosil_p=path(time=clk,type=linear_opened,num=9,y=0,1,2,3,4,5,7,8,9);
  15. kosil=blender(in=kocka,ani=kosil3m.ani,x=100,frame=kosil_p);
  16. #
  17. pes_p=path(time=clk,type=linear_opened,num=4,y=0,2,3,4);
  18. pes_s=oscilator(add=4.5,amp=0.5,freq=-0.2);
  19. pes_clk=selector(time=clk,type=timer,
  20. num=2,t1=0,t2=3,v1=pes_p,v2=pes_s);
  21. pes=blender(in=kosil,ani=pes2m.ani,x=-110,y=30,frame=pes_clk);
  22. #
  23. vrana1_clk=oscilator(add=0.5,amp=0.5,freq=1);
  24. vrana1=blender(in=pes,ani=vrana1.ani,frame=vrana1_clk);
  25. #
  26. vrana2_p=path(time=clk,type=linear_opened,num=3,y=0,2,5);
  27. vrana2_s=oscilator(add=4.5,amp=0.5,freq=-1);
  28. vrana2_clk=selector(time=clk,type=timer,
  29. num=2,t1=0,t2=1.6,v1=vrana2_p,v2=vrana2_s);
  30. vrana2=blender(in=vrana1,ani=vrana2.ani,frame=vrana2_clk);
  31. #
  32. okrajt=texture(in=okraj.png);
  33. okraj=mixer(in=vrana2,tex=okrajt,op=transparency);
  34. output:screen(in=okraj,xres=640,yres=480,pal=my.pal);
  35. #