blob: 03b7141de1244895b60289b7ace5228222f2f964 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "utils.h"
#ifndef PLAYER_H
#define PLAYER_H
#define PLAYER_HEIGHT 2.0
#define PLAYER_SPEED 80.0 // 8.0
#define PLAYER_MAX_SELECT_DISTANCE 10.0
typedef struct {
Vector3 position;
Vector3 direction;
Vector3 velocity;
Camera camera;
Vector2 cameraAngle;
} Player;
Player createPlayer();
void updatePlayer(Player* player, Game* game);
#endif
|