katbug/Pickups.h

19 lines
304 B
C
Raw Normal View History

2019-02-04 21:24:24 +00:00
typedef struct pickup
{
int x;
int y;
int vX;
int vY;
SDL_Surface* sprite;
int points;
} Pickup;
Pickup* newPickup();
void managePickups();
void movePickup(Pickup* self);
void drawPickup(Pickup* self);
void invalidatePickup(Pickup* self);
void getPickup(Pickup* self);
void cleanPickups();