summaryrefslogtreecommitdiffhomepage
path: root/src/player.h
blob: 0e94080119e1473fad32fc889b4a4ae87a3527d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef GAME_PLAYER_H
#define GAME_PLAYER_H

#include "raylib.h"
#include "input.h"

// for camera_style
// 0 = first person
// 1 = third person
typedef
struct
{
	Vector3 position;
	Vector3 direction;
	float speed;
	Color color;
	int camera_mode;
}
Player;

Camera
lookThroughPlayer(Camera camera, Player player);

void
drawPlayer(Player *player);

void
movePlayers(void);

#endif