diff --git a/a4/game.h b/a4/game.h new file mode 100644 index 0000000..1aad23d --- /dev/null +++ b/a4/game.h @@ -0,0 +1,19 @@ +#ifndef _GAME_H_INCLUDE_ +#define _GAME_H_INCLUDE_ +#include "world.h" + +#define MOUSE_COUNT 5 + +struct game { + int catx; + int caty; + int mousex[MOUSE_COUNT]; + int mousey[MOUSE_COUNT]; + int mouse_state[MOUSE_COUNT]; // 0 = alive, 1 = eaten + char message[100]; +}; + +void* init_game(); +int game_event(struct event* event, void* game); + +#endif \ No newline at end of file