Subversion Repositories Games.Rick Dangerous

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * src/sprites.h
  3.  *
  4.  * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5.  *
  6.  * The use and distribution terms for this software are contained in the file
  7.  * named README, which can be found in the root of this distribution. By
  8.  * using this software in any fashion, you are agreeing to be bound by the
  9.  * terms of this license.
  10.  *
  11.  * You must not remove this notice, or any other, from this software.
  12.  */
  13.  
  14. /*
  15.  * NOTES -- PC version
  16.  *
  17.  * A sprite consists in 4 columns and 0x15 rows of (U16 mask, U16 pict),
  18.  * each pair representing 8 pixels (cga encoding, two bits per pixels).
  19.  * Sprites are stored in 'sprites.bin' and are loaded by spr_init. Memory
  20.  * is freed by spr_shutdown.
  21.  *
  22.  * There are four sprites planes. Plane 0 is the raw content of 'sprites.bin',
  23.  * and planes 1, 2 and 3 contain copies of plane 0 with all sprites shifted
  24.  * 2, 4 and 6 pixels to the right.
  25.  */
  26.  
  27.  
  28. #ifndef _SPRITES_H_
  29. #define _SPRITES_H_
  30.  
  31. #include "system.h"
  32.  
  33. #define SPRITES_NBR_SPRITES (0xD5)
  34.  
  35. typedef U32 sprite_t[0x54];   /* 0x15 per 0x04 */
  36.  
  37. extern sprite_t sprites_data[SPRITES_NBR_SPRITES];
  38.  
  39. #endif
  40.