home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TANK11.ZIP / SOURCE.ZIP / TANKDEFS.H < prev    next >
Text File  |  1993-01-16  |  1KB  |  55 lines

  1. /* TANKDEFS.H
  2.  *
  3.  * This file contains all global defines for the Tank program.
  4.  */
  5.  
  6. #define MAXNUMTANKS 3
  7.  
  8. #define CONFIGFILE "tank.cfg" /* configuration file name */
  9.  
  10. /* tank data */
  11. #define DEFTANKSPEED 260 /* number of main loops between each tank movement */
  12. #define DEFNUMTANKS 2
  13. #define T0COLOR 0x09
  14. #define T1COLOR 0x0c
  15. #define T2COLOR 0x0e
  16. #define T3COLOR 0x0b
  17.  
  18. /* shot data */
  19. #define SHOTCOLOR    0x0f
  20. #define DEFSHOTRANGE 220  /* max number of pixels shot moves before dying out */
  21. #define DEFSHOTSPEED 190  /* number of main loops between each shot movement  */
  22.  
  23. /* Tree Stuff */
  24. #define TREECOLOR 0x02
  25. #define NUMTREES 25
  26.  
  27. /* bitmap dimensions */
  28. #define TXDIM  12              /* number of columns in a tank bitmap  */
  29. #define TYDIM  12              /* number of rows in a tank bitmap */
  30. #define TBMLEN  TXDIM*TYDIM    /* number of bytes in a tank pic */
  31.  
  32. #define SXDIM 2
  33. #define SYDIM 2
  34. #define SBMLEN SXDIM*SYDIM
  35.  
  36. #define EXP1XDIM 11
  37. #define EXP1YDIM 11
  38. #define EXP1BMLEN EXP1XDIM*EXP1YDIM
  39.  
  40. #define TREEXDIM 10
  41. #define TREEYDIM 11
  42. #define TREEBMLEN TREEXDIM*TREEYDIM
  43.  
  44. /* Dimensions of field[x][y] array. See field in EXTERN.H */
  45. #define FIELDX 305
  46. #define FIELDY 175
  47.  
  48. /* direction (usuallly 'dir') definitions */
  49. #define LEFT  0
  50. #define RIGHT 1
  51. #define UP    2
  52. #define DOWN  3
  53.  
  54. #define CursorOff SetCursor(32, 32)
  55. #define CursorOn  SetCursor(6, 7)