a4
This commit is contained in:
parent
320cceeadc
commit
3d824f1c7f
19
a4/game.h
Normal file
19
a4/game.h
Normal 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
|
Loading…
Reference in New Issue
Block a user