home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / spiele / argon / argon.exe / src / video.h < prev   
Encoding:
C/C++ Source or Header  |  2000-01-21  |  1.8 KB  |  68 lines

  1. /*
  2.   video.h
  3.  
  4.   (c) 1999-2000 Till Harbaum
  5.  
  6.   T.Harbaum@tu-bs.de - http://www.ibr.cs.tu-bs.de/~harbaum/pilot
  7.  
  8.   This program is distributed in the hope that it will be useful,
  9.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.   GNU General Public License for more details.
  12.  
  13. */
  14.  
  15. #ifndef __VIDEO_H__
  16. #define __VIDEO_H__
  17.  
  18. extern Boolean VideoGreyscaleOn(void);
  19. extern void    VideoGreyscaleOff(void);
  20. extern void    VideoDrawBackground(unsigned int y);
  21. extern void    VideoDrawTitleBg(void);
  22. extern void    VideoFlip(void);
  23. extern void    VideoInitLevel(void);
  24.  
  25. extern Boolean VideoSpriteCollide(int x1, int y1, int s1, int x2, int y2, int s2);
  26. extern Boolean VideoSpriteBgCollide(unsigned int ypos, int x, int y, int s);
  27. extern void    VideoDrawSprite(int x, int y, int spr);
  28. extern void    VideoDrawText(int x, int y, unsigned char *str);
  29. extern void    VideoDrawPartialText(int x, int y, unsigned char *str, 
  30.                     int xs, int xe, int ys, int ye);
  31.  
  32. extern char    *VideoSin, *VideoCos;
  33.  
  34. /* foreground data */
  35. #define FG_EMPTY    0
  36. #define FG_FLASH0   6
  37. #define FG_FLASH1   7
  38. #define FG_FLASH2   8
  39. #define FG_FLASH3   9
  40.  
  41. /* sprites */
  42. #define SPR_SHIP  0x00  // players ship
  43. #define SPR_BALL  0x01  // ball type enemy
  44. #define SPR_SHOT1 0x02  // single shot
  45. #define SPR_SHOT2 0x03  // double shot
  46. #define SPR_SHOT3 0x12  // tripple shot
  47. #define SPR_EXP_F 0x04  // explosion first
  48. #define SPR_EXP_L 0x08  // explosion last
  49. #define SPR_EBOMB 0x09  // enemies bomb
  50.  
  51. /* Argon V logo */
  52. #define SPR_A  0x0a
  53. #define SPR_r  0x0b
  54. #define SPR_g  0x0c
  55. #define SPR_o  0x0d
  56. #define SPR_n  0x0e
  57. #define SPR_V  0x0f
  58.  
  59. /* score */
  60. #define SPR_SCORE10   0x10
  61. #define SPR_SCORE100  0x11
  62.  
  63. /* text cursor */
  64. #define SPR_CURSOR 0x13
  65. #define SPR_CUREXT 0x14
  66.  
  67. #endif
  68.