summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h14
1 files changed, 14 insertions, 0 deletions
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