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

  1. <const.plg>
  2. #
  3. cls=mixer(op=clear);
  4. kosil_clk=oscilator(fce=saw,amp=25.5,freq=0.1);
  5. kocka_clk=oscilator(fce=sinus,add=2,amp=2,freq=0.3);
  6. #
  7. r1=texture(in=sc01_p01.png);
  8. r2=texture(in=sc01_p02.png);
  9. r3=texture(in=sc01_p03.png);
  10. #
  11. clk=oscilator(fce=saw,amp=3,freq=0.05);
  12. #clk=constant(k=0);
  13. w1x=path(time=clk,num=3,y=0,-100,-200);
  14. w2x=path(time=clk,num=3,y=0,-202,-404);
  15. w3x=path(time=clk,num=3,y=100,-136,-373);
  16. #
  17. w1=window(win=r1,x=w1x,w=968,h=327);
  18. w2t=mixer(in=w2,tex=r2,op=transparency);
  19. w2=window(in=w1,win=w2t,x=w2x,w=1044,h=480);
  20. #
  21. mou_c=oscilator(fce=clock,freq=0.5);
  22. mouf=oscilator(fce=saw,amp=2,freq=7);
  23. moux=path(time=mou_c,type=closed,num=7,y=0,10,0,20,-10,20,-10);
  24. mouy=path(time=mou_c,type=closed,num=7,y=10,30,20,-30,10,-20);
  25. #
  26. kosil=blender(in=w2,ani=kosil1.ani,x=[w2x+404-100],y=70,frame=kosil_clk);
  27. kocka=blender(in=kosil,ani=kocka1.ani,x=[w2x+404+140],y=120,frame=kocka_clk);
  28. pes=blender(in=kocka,ani=pes1.ani,x=[w2x+404+240],y=100,frame=kocka_clk);
  29. #
  30. w3t=mixer(in=w3,tex=r3,op=transparency);
  31. w3=window(in=pes,win=w3t,x=w3x,y=210,w=1013,h=270);
  32. #
  33. moucha1=blender(in=w3,ani=moucha1.ani,
  34. x=[moux+w3x-150-mouf/2],y=[mouy*2+mouf/4-50],frame=mouf);
  35. moucha2=blender(in=moucha1,ani=moucha2.ani,
  36. x=[mouy+w3x-200+mouf/4],y=[moux*2-mouf/2-25],frame=mouf);
  37. #
  38. okrajt=texture(in=okraj.png);
  39. okraj=mixer(in=moucha2,tex=okrajt,op=transparency);
  40. output:screen(in=okraj,xres=640,yres=480,pal=my.pal);
  41. #