summaryrefslogtreecommitdiff
path: root/include/players.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-13 17:40:23 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-13 17:40:23 +0100
commitf8ccfba637267bae8064daa320cfb00b8ffe3e66 (patch)
tree1a039335d09db5159b17bd7909a93039f0de1386 /include/players.h
parentcaac4b1d169425ad7dda15fe8fceca9c5a95400b (diff)
movement working
Diffstat (limited to 'include/players.h')
-rw-r--r--include/players.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/players.h b/include/players.h
index abe4a37..6d401c4 100644
--- a/include/players.h
+++ b/include/players.h
@@ -19,6 +19,8 @@ typedef struct t_player {
float gun_height;
} player;
+#include "protocol.h"
+
u32 my_id = 1;
int max_players = 10;
@@ -29,5 +31,6 @@ void draw_players_at_tile(platform_window* window, int x, int y);
void draw_bullets(platform_window* window);
object check_if_player_collided_with_object(platform_window* window, player p);
float get_player_size(platform_window* window);
+void move_user(platform_window* window, u32 id, protocol_move_type move);
#endif \ No newline at end of file