summaryrefslogtreecommitdiff
path: root/include
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
parentcaac4b1d169425ad7dda15fe8fceca9c5a95400b (diff)
movement working
Diffstat (limited to 'include')
-rw-r--r--include/game.h1
-rw-r--r--include/players.h3
2 files changed, 4 insertions, 0 deletions
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 <projectbase/project_base.h>
#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