katbug/Catbug.h

19 lines
329 B
C
Raw Permalink Normal View History

2019-02-04 21:24:24 +00:00
typedef struct catbug
{
SDL_Surface* spriteSheet;
unsigned short int frame;
int x;
int y;
int vX;
int vY;
unsigned short int HP;
} Catbug;
Catbug* newCatbug(int x, int y);
void deleteCatbug(Catbug* target);
int isInRect(Catbug* self, SDL_Rect* box);
void moveCatbug(Catbug* self);
void drawCatbug(Catbug* self);