From f8ccfba637267bae8064daa320cfb00b8ffe3e66 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 13 Dec 2022 17:40:23 +0100 Subject: movement working --- include/game.h | 1 + include/players.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/game.h b/include/game.h index ffab7b7..9f0d173 100644 --- a/include/game.h +++ b/include/game.h @@ -4,6 +4,7 @@ #include #include "../include/protocol.h" +#include "../include/players.h" #include "../include/game.h" typedef enum t_game_state { 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 -- cgit v1.2.3-70-g09d2