Update 'a3/game.h'
This commit is contained in:
parent
ced882abf7
commit
948ee5629d
@ -2,6 +2,8 @@
|
||||
#define _GAME_H_INCLUDE_
|
||||
#include "world.h"
|
||||
|
||||
|
||||
#define MOUSE_COUNT 5
|
||||
// Set of variables that expresses state of the game.
|
||||
//
|
||||
struct game {
|
||||
@ -12,13 +14,14 @@ struct game {
|
||||
// X position of the cat
|
||||
int catx_position;
|
||||
// Y opsition of the cat
|
||||
int caty_position;;
|
||||
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[MOUSE_COUNT];
|
||||
};
|
||||
|
||||
// Returns pointer to newly allocated state
|
||||
|
||||
Loading…
Reference in New Issue
Block a user