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_x, dir_y; float plane_x, plane_y; float move_speed; float rot_speed; } Player; void move_player(Player *player, GLFWwindow* window); #endif