From 622604ab99f53a891700919268e34ab679c96330 Mon Sep 17 00:00:00 2001 From: Schark Date: Thu, 11 May 2023 22:04:13 -0700 Subject: Created player files for easier management of movement --- src/player.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/player.h (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h new file mode 100644 index 0000000..1ee8154 --- /dev/null +++ b/src/player.h @@ -0,0 +1,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 -- cgit v1.2.3-18-g5258