home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 412.lha / crabs / crabs.h < prev    next >
C/C++ Source or Header  |  1990-08-29  |  2KB  |  36 lines

  1. /* The Crabs header file */
  2.  
  3. #define    STARTCRABS  1               /* default start number of crabs */
  4. #define    MAXCRABS    40              /* max number of crabs */
  5. #define    SIZE        12             /* X size of the bitmaps,half for Y */
  6. #define    ONEIMAGE                    /* movement style */
  7.  
  8. #define    MAXVEL      8               /* abs. bound on velocity component */
  9. #define    FEEDVEL     2               /* velocity change after a feed */
  10. #define    DELAY       3               /* sleep time bettween cycles */
  11. #define    PLACELIM    50              /* times to try to find a blank spot */
  12.  
  13.  
  14. #define    FEEDlp      12              /* number of life points in one feed */
  15. #define    BITElp      30              /* damage from being eaten */
  16. #define    MOVElp      1               /* life points for a move */
  17. #define    BOUNCElp    0               /* hiting the screen edge hurts */
  18. #define    REPROlp     400             /* life points to reproduce at */
  19.  
  20. /* movement style */
  21. #ifdef SIDEWAYS
  22. #  define PICKMAP(v)  ( abs((v).x) > abs((v).y * 2 ) ? \
  23.                            ( (v).y > 0 ? &RPdown : &RPup ) : \
  24.                            ( (v).x > 0 ? &RPright : &RPleft ) )
  25. #endif
  26.  
  27. #ifdef FORWARD
  28. #  define PICKMAP(v)  ( abs((v).x) > abs((v).y * 2 ) ? \
  29.                            ( (v).x > 0 ? &RPright : &RPleft ) : \
  30.                            ( (v).y > 0 ? &RPdown : &RPup ) )
  31. #endif
  32.  
  33. #ifdef ONEIMAGE         /* only the crabup.i image is used */
  34. #  define PICKMAP(v)  ( &RPup )
  35. #endif
  36.