home *** CD-ROM | disk | FTP | other *** search
- {*********************************************************}
- { TEGL Windows ToolKit II }
- { Copyright (C) 1990, TEGL Systems Corporation }
- { All Rights Reserved. }
- {*********************************************************}
-
- Uses
- crt,
- tgraph,
- videochk,
- { teglintr, }
- animunit,
- teglmain,
- TEGLIcon,
- { TEGLMenu, }
- TEGLUnit;
- { fastgrph; }
-
- var BounceIcon : animateobject;
-
- begin
- SetVideoChoices(TG_VGA,false);
- EasyTEGL;
-
- init(BounceIcon);
- AddFrame(BounceIcon,@imageblankbut,-15,0,14,37,10,0,0,black);
- sequence(BounceIcon,1);
-
- ResetSequence(BounceIcon);
- AddFrame(BounceIcon,@imageblankbut,15,0,14,37,10,0,0,black);
- sequence(BounceIcon,2);
-
- Origin(BounceIcon,GetMaxx div 2,GetMaxy div 2);
-
- animateinit;
-
- clearkeyboardbuf;
-
- while not keypressed do
- begin
- sequence(BounceIcon,1);
- Animate(BounceIcon,Destination(BounceIcon,36,0));
-
- sequence(BounceIcon,2);
- Animate(BounceIcon,Destination(BounceIcon,560,0));
- end;
-
- TEGLSupervisor;
- end.