summaryrefslogtreecommitdiff
path: root/include/players.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-09 11:31:07 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-09 11:31:07 +0200
commit962ebf95459a8da08f44898d13d185e60de59b45 (patch)
treeb7b8d5bd0760f760f99fd6e2703752f6137e306e /include/players.h
parentc13e3bce702003aea65eef54ee462fd20cdf4fa1 (diff)
work
Diffstat (limited to 'include/players.h')
-rw-r--r--include/players.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/players.h b/include/players.h
index d230d0c..ccf91b9 100644
--- a/include/players.h
+++ b/include/players.h
@@ -19,9 +19,16 @@
typedef enum t_player_interact_state {
INTERACT_IDLE,
INTERACT_RELOADING,
- INTERACT_DEAD
+ INTERACT_DEAD,
} player_interact_state;
+typedef enum t_player_move_state
+{
+ PLAYER_MOVE_STATE_RUNNING,
+ PLAYER_MOVE_STATE_IDLE,
+ PLAYER_MOVE_STATE_JUMPING,
+} player_move_state;
+
typedef enum t_player_direction {
DIRECTION_UP,
DIRECTION_RIGHT,
@@ -58,6 +65,7 @@ typedef struct t_player {
float guny;
float dirx;
float diry;
+ player_move_state move_state;
float gun_height;
float sec_since_last_step;
player_direction direction;
@@ -70,6 +78,7 @@ typedef struct t_player {
u64 ping;
sprite sprite;
sprite sprite_death;
+ sprite sprite_idle;
network_state connection_state;
u32 points;
struct {