From fc027f7d214028086178a7328926c9b14ead464d Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 9 Apr 2023 02:02:51 +0300 Subject: map loading done --- 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..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 -- cgit v1.2.3