summaryrefslogtreecommitdiff
path: root/player.h
blob: 74b4a75bd6f55b3a4cdc44fdb4817f21f0b76acd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef player_h
#define player_h

struct Services;
struct Renderer;

typedef struct {
	int p[3];
	int r[2];
	int f[2], l[2];
	int anim;
} Player;

void init_player(Player* p);
void update_player(Player* p, struct Services* s);
void push_player_cam(const Player* p);
void pop_player_cam(void);
void draw_player_world(struct Renderer* r, const Player* p);

#endif