EOB2 monster graphics description files


Some monster graphics files (.cps) have a corresponding .dcr file, which contains
a description of the various graphics parts stored in the .cps file.

struct dcr {
 unsigned short count;
 MonsterGFXAllSides GFXTypes[nbrMonsterGFXDescr];
}
/* = 2 + k*36 bytes */
 
 
struct MonsterGFXAllSides {
  MonsterGFXPart Sides[6];
}
/* = 6*6 = 36 bytes */
 
struct MonsterGFXPart {
 unsigned char x;               // multiply by 8
 unsigned char y;
 unsigned char width;           // multiply by 8
 unsigned char height;
 char screen_x;
 char screen_y;
}
/* = 6 bytes */

Sides are different views of the monster: front, side1, side2, back, attackfront1 ....
GFXTypes are for example: a sword, head ...