home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / sprites / demosrc / smspr.h < prev    next >
Encoding:
Text File  |  1991-02-25  |  2.3 KB  |  56 lines

  1. /**********************************************************************
  2. * smspr.h
  3. *
  4. * StarMines - a sprite toolkit demonstration game.
  5. *
  6. * The sprite creation functions.
  7. **********************************************************************
  8.                     This file is part of
  9.  
  10.           STK -- The sprite toolkit -- version 1.1
  11.  
  12.               Copyright (C) Jari Karjala 1991
  13.  
  14. The sprite toolkit (STK) is a FreeWare toolkit for creating high
  15. resolution sprite graphics with PCompatible hardware. This toolkit 
  16. is provided as is without any warranty or such thing. See the file
  17. COPYING for further information.
  18.  
  19. **********************************************************************
  20. **********************************************************************/
  21.  
  22.  
  23. /**********************************************************************
  24. * Create the wave'th aliens.
  25. * Return: 0 if OK, negative if out of memory, etc
  26. **********************************************************************/
  27. int smspr_init_aliens(int wave);
  28.  
  29. /**********************************************************************
  30. * Create an animated alien into the next free slot in the global 
  31. * 'aliens' array. Set fx_handler and start alien.
  32. * Return NULL if error or no more slots.
  33. **********************************************************************/
  34. ANIM_SPRITE smspr_create_alien(void);
  35.  
  36. /**********************************************************************
  37. * Creates an 'animated' sprite for the player. Actually it contains
  38. * only the different rotations for the player. Set fx_handler and 
  39. * start the player.
  40. * Return: NULL if error, the player otherwise.
  41. **********************************************************************/
  42. ANIM_SPRITE smspr_create_player(void);
  43.  
  44.  
  45. /**********************************************************************
  46. * Create a bullet. Set fx_handler and start the bullet.
  47. * Return: NULL if error, the bullet otherwise.
  48. **********************************************************************/
  49. ANIM_SPRITE smspr_create_bullet(void);
  50.  
  51. /**********************************************************************
  52. * Create an explosion. Set fx_handler and start the sprite.
  53. * Return: NULL if error, the ANIM_SPRITE otherwise.
  54. **********************************************************************/
  55. ANIM_SPRITE smspr_create_explosion(void);
  56.