Update 'a3/game.h'

This commit is contained in:
Anzhelika Nikolaieva 2023-04-20 12:00:49 +00:00
parent b0887fa624
commit 751b9c2994

View File

@ -2,6 +2,7 @@
#define _GAME_H_INCLUDE_
#include "world.h"
#define MOUSE_COUNT 5
// Set of variables that expresses state of the game.
//
struct game {
@ -14,12 +15,12 @@ struct game {
// Y opsition of the cat
int caty_position;;
// X position of the mouse
int mousex;
int mousex[MOUSE_COUNT];
// Y position of the mouse
int mousey;
int mousey[MOUSE_COUNT];
// Funky message
char message[100];
int mouse_state;
int mouse_state[MOUSE_COUNT];
};
// Returns pointer to newly allocated state