blob: e45dfd91397cd0cc8ced54ef09acf081f9697e71 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef PLAYER_H
#define PLAYER_H
typedef struct Player {
float pos_x, pos_y;
float dir, dir_x, dir_y;
float plane_x, plane_y;
float move_speed;
float sensitivity;
} Player;
void move_player(Player *player, GLFWwindow* window, double* mouse_x, double* mouse_y, double width, double height);
#endif
|