diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-04-10 22:23:26 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-04-10 22:23:26 +0300 |
commit | 685076399535d47e056eb2341baa18888d15482b (patch) | |
tree | d284bbbbd2d2f102520735dc7256e14d8911e749 /src/player.h | |
parent | 80ead50951c8b0d2c60c9fd57b8a4c943634b084 (diff) |
rendering one sector works
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/player.h b/src/player.h index ee5270b..c627bcf 100644 --- a/src/player.h +++ b/src/player.h @@ -1,16 +1,20 @@ #ifndef PLAYER_H #define PLAYER_H +#include <stdbool.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 + float angle, anglesin, anglecos; // angle, and its sine and cosine size_t sector; // the sector that the player is in + float stand_height, duck_height, head_margin; // eyeheights; minimum margin between current height and celling + bool ground, falling, moving, ducking; } player_t; -int player_update(player_t *player); +void player_default(player_t *player); -// TODO: Add functions to manipulate a player +void player_input(player_t *player, bool *input, int rmouse_x, int rmouse_y); +void player_update(player_t *player); #endif |