Update 'a3/game.h'

This commit is contained in:
Anzhelika Nikolaieva 2023-04-23 11:33:07 +00:00
parent 27d0920937
commit a98793204c

View File

@ -24,12 +24,16 @@ struct game {
};
// Returns pointer to newly allocated state
void* init_game(struct game *game);
//void* init_game(struct game *game);
void update_game(struct game *game, int key);
void draw_game(struct game *game);
//void update_game(struct game *game, int key);
//void draw_game(struct game *game);
// Changes world according to the game state (pressed key, screen size or other event)
int game_event(struct event* event,void* game);
//int game_event(struct event* event,void* game);
struct game* create_world(int width, int height, int mouse_count);
void destroy_world(struct game* game);
void move_cat(struct game* game, char direction);
void move_mouse(struct game* game, int mouse_index);
int get_living_mouse_count(struct game* game);
#endif