home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / planet / build / demo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-07  |  544 b   |  36 lines

  1. #include <theatrix.h>
  2.  
  3. const int INC = 4;
  4.  
  5. class Sprite : public Performer
  6.   {
  7. public:
  8.   Sprite(char* gfxlib,char* sfxlib);
  9.   void initialize();
  10.   void move_to(int x,int y);
  11.   void bounce();
  12. private:
  13.   char gfxlib[13];
  14.   char sfxlib[13];
  15.   int image;
  16.   int w,h;
  17.   int xq[2];
  18.   int yq[2];
  19.   };
  20.  
  21. class DemoDirector : public VideoDirector
  22.   {
  23. public:
  24.   DemoDirector();
  25. private:
  26.   void display();
  27.   void on_timer();
  28.   void on_esc(int);
  29. private:
  30.   Sprite* moon;
  31.   int x,y;
  32.   int xinc,yinc;
  33.   DECLARE_CUELIST
  34.   };
  35.  
  36.