blob: 2086c4563d8f8768e97ceb6ed03f8465bd186c03 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#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;
float look_angle;
} Player;
void move_player(Player *player, GLFWwindow* window, double* mouse_x, double* mouse_y, double width, double height);
#endif
|