home *** CD-ROM | disk | FTP | other *** search
/ Falcon 030 Power 2 / F030_POWER2.iso / ST_STE / MAGS / ICTARI10.ARJ / ictari.10 / C / BOINKOUT / BOINKOUT.H < prev    next >
Text File  |  1987-04-22  |  1KB  |  71 lines

  1. /******* boinkout.h ***************/
  2.  
  3. /*    You should define one and only one of the following entries as a    */
  4. /*    non-zero value depending on which compiler you are using.            */
  5.  
  6. #define LASER 1                /* 1 if laser c, 0 if other */
  7. #define MWC 0                /* 1 if mark williams c, 0 if other */
  8.  
  9. #if (LASER)
  10. #define HIDE_MOUSE asm{    dc.w 0xa00a    }
  11. #define SHOW_MOUSE asm{    dc.w 0xa009    }
  12. #else
  13. #define HIDE_MOUSE graf_mouse(M_OFF,0L);
  14. #define SHOW_MOUSE graf_mouse(M_ON,0L);
  15. #endif
  16.  
  17. #define SIDE_S 0x1e
  18. #define TOP_S 0x1d
  19. #define BOT_S 0x1f
  20.  
  21. #define TRUE 1
  22. #define FALSE 0
  23.  
  24. typedef struct { int x,y,w,h;    } RECT;
  25.  
  26. typedef struct {
  27.     int id;
  28.     int (*ani_funct)();
  29.     int x,y;
  30.     int xspeed, yspeed;
  31.     int array[8];
  32.     int l,t,r,b;        /* redraw region */
  33.     int spin_dir;
  34.     int ball_ht, ball_wid;
  35.     int half_ht, half_wid;
  36.     int ball_num;
  37.     } BALL_STRUCT;
  38.  
  39. /******* ball id's *********/
  40. #define UNUSED 0
  41. #define BALL 1
  42. #define FUJI 2
  43. #define EYE 3
  44.  
  45. typedef struct {
  46.     int (*ani_funct)();        /* ptr to the function to do the animation */
  47.     int x,y;                /* position of the animation */
  48.     int frame;                /* the frame number for this animation */
  49.     } ANI_STRUCT;
  50.  
  51.  
  52. #define MAX_BALLS 12
  53. #define MAX_ANI 60
  54.  
  55. #define Blit(a)        xbios(0x40,a)
  56.  
  57. #define WIDTH 440
  58. #define HEIGHT 362
  59.  
  60. #define NO_WINDOW (-1)
  61.  
  62. #define MIN_WIDTH  (113)
  63. #define MIN_HEIGHT (2*gl_hbox + ball_ht + 1)
  64.  
  65. #define BONUS 500
  66.  
  67. #define BNORMAL 3
  68. #define BLACKMODE 15
  69.  
  70. #define LEVELS 36
  71.