1 /* structs.h */ 2 3 /* Structs */ 4 struct enem { 5 int type[7]; 6 float x[7]; 7 float y[7]; 8 int direction[7]; 9 int tilex[7]; 10 int tiley[7]; 11 int animation[7]; 12 int limleft[7]; 13 int limright[7]; 14 int speed[7]; 15 int fire[7]; 16 int adjustx1[7]; 17 int adjustx2[7]; 18 int adjusty1[7]; 19 int adjusty2[7]; 20 }; 21 22 struct hero { 23 float x; 24 float y; 25 int direction; 26 int jump; /* 1-Up, 2-Down */ 27 float height; /* Limit of jump */ 28 int animation; 29 float gravity; 30 int points[8]; /* Points of collision */ 31 int ground; /* Pixel where is ground */ 32 int collision[4]; /* Collisions, in 4 directions */ 33 int ducking; 34 int checkpoint[4]; 35 int state[2]; /* Vidas y cruces */ 36 int flags[7]; 37 int death; 38 int push[4]; /* Pulsaciones de teclas */ 39 int temp; 40 }; 41