summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 18:51:44 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 18:51:44 +0100
commitc0d1f750783f00fb82b6ec2cce11e0ce423acf02 (patch)
tree30086a10c65f3dcad096e28699ada5297f7e7917 /include
parent04024078984bbaf84f34352061da2a224ecdb0b0 (diff)
editor work + refactor
Diffstat (limited to 'include')
-rw-r--r--include/players.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/players.h b/include/players.h
index 535d388..d6587db 100644
--- a/include/players.h
+++ b/include/players.h
@@ -48,6 +48,7 @@ typedef struct t_player {
int kills;
u64 ping;
sprite sprite;
+ vec3f velocity;
} player;
#include "protocol.h"
@@ -62,7 +63,7 @@ int get_player_count();
player* get_player_by_id(u32 id);
void draw_players(platform_window* window);
void draw_bullets(platform_window* window);
-object check_if_player_collided_with_object(platform_window* window, player p);
+object check_if_player_collided_with_object(player p);
float get_player_size(platform_window* window);
void move_user(platform_window* window, u32 id, protocol_move_type move, float delta);
void update_players_server();