This commit is contained in:
Roman Khaliavka 2025-05-01 15:59:21 +00:00
parent 320cceeadc
commit 3d824f1c7f

19
a4/game.h Normal file
View File

@ -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