1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef BAT_H #define BAT_H typedef struct { int id; double x, y; int xstart, ystart; int type; //0 = gray | 1 = red int dir; double imageIndex; int counter, timer, state; } Bat; void createBat(int x, int y, int type); #endif