summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-04-09 02:02:51 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-04-09 02:02:51 +0300
commitfc027f7d214028086178a7328926c9b14ead464d (patch)
treed2972055a06565f26a19626ac3fb26ead84e0766 /src/player.h
map loading done
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..91a9d5e
--- /dev/null
+++ b/src/player.h
@@ -0,0 +1,14 @@
+#ifndef PLAYER_H
+#define PLAYER_H
+
+#include "common.h"
+
+typedef struct player {
+ struct xyz pos, velocity; // vectors for the player
+ float angle, anglesin, anglecos, yaw; // angle, and its sine and cosine
+ uint sector; // the sector that the player is in
+} player_t;
+
+// TODO: Add functions to manipulate a player
+
+#endif