diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 13:37:16 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 13:37:16 +0100 |
| commit | 40027e44e5d0f0040238cfc1bd6a8d80c17c54fb (patch) | |
| tree | 98206731b8a27885d212333ef7b593ab664f5148 /include | |
| parent | 1ac44d4ec6b6b51fefe6ca50ef82d5d2fc1f6dfb (diff) | |
minor changes
Diffstat (limited to 'include')
| -rw-r--r-- | include/drops.h | 2 | ||||
| -rw-r--r-- | include/overlay.h | 2 | ||||
| -rw-r--r-- | include/players.h | 2 | ||||
| -rw-r--r-- | include/protocol.h | 1 |
4 files changed, 6 insertions, 1 deletions
diff --git a/include/drops.h b/include/drops.h index e7ab661..aa48e24 100644 --- a/include/drops.h +++ b/include/drops.h @@ -25,6 +25,8 @@ typedef struct t_drop { #define MAX_DROPS 50 drop drops[MAX_DROPS] = {0}; +#define DROP_MAX_DURATION (4.0f) +#define DROP_FADE_TIME (2.0f) void update_drops(); void draw_drops(platform_window* window); diff --git a/include/overlay.h b/include/overlay.h index 7441003..de7410c 100644 --- a/include/overlay.h +++ b/include/overlay.h @@ -3,6 +3,8 @@ #include <projectbase/project_base.h> +u64 server_update_time = 0; + void draw_overlay(platform_window* window); #endif
\ No newline at end of file diff --git a/include/players.h b/include/players.h index ce88688..f76e620 100644 --- a/include/players.h +++ b/include/players.h @@ -42,7 +42,7 @@ void draw_players(platform_window* window); 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); +void move_user(platform_window* window, u32 id, protocol_move_type move, float delta); void update_players_server(); void spawn_player(u32 id, network_client client); diff --git a/include/protocol.h b/include/protocol.h index a49aaab..0ec87d7 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -73,6 +73,7 @@ typedef struct t_protocol_move network_message_type type; protocol_move_type move; u32 id; + float delta; } protocol_move; typedef struct t_protocol_user_look |
