diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/objects.h | 7 | ||||
| -rw-r--r-- | include/players.h | 2 | ||||
| -rw-r--r-- | include/zombies.h | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/include/objects.h b/include/objects.h index 4444253..ef53d78 100644 --- a/include/objects.h +++ b/include/objects.h @@ -49,7 +49,7 @@ typedef struct t_box { // @NEWOBJECT object object_dict[OBJECT_END] = { - {0,(vec3f){0, 0, 0},{1,3,1},OBJECT_SPACE_CONTROL_PANEL}, + {0,(vec3f){0, 0, 0},{1,3,0.5f},OBJECT_SPACE_CONTROL_PANEL}, {0,(vec3f){0, 0, 0},{1,1,2},OBJECT_SPACE_WINDOW}, {0,(vec3f){0, 0, 0},{1,1,1},OBJECT_METAL_WALL}, {0,(vec3f){0, 0, 0},{1,1,1},OBJECT_METAL_WALL2}, @@ -62,7 +62,8 @@ void create_objects(); void add_object(object obj); void draw_objects(platform_window* window); box get_box_of_object(platform_window* window, object o); -void render_quad_with_outline(vec2f tl, vec2f tr, vec2f bl, vec2f br, color c); -void render_box_with_outline(box box, color c); +void render_fill_quad_with_outline(vec2f tl, vec2f tr, vec2f bl, vec2f br, color c); +void render_fill_box_with_outline(box box, color c); +void render_box_outline(box box, color c); #endif
\ No newline at end of file diff --git a/include/players.h b/include/players.h index ccf91b9..d97b978 100644 --- a/include/players.h +++ b/include/players.h @@ -100,7 +100,7 @@ player players[MAX_PLAYERS] = {0}; int get_player_count(); player* get_player_by_id(u32 id); -void draw_players(platform_window* window); +void draw_players(platform_window* window, uint32_t ystart, uint32_t yend); void draw_bullets(platform_window* window); object check_if_player_collided_with_object(player p); float get_player_size(platform_window* window); diff --git a/include/zombies.h b/include/zombies.h index ec80135..5c6d252 100644 --- a/include/zombies.h +++ b/include/zombies.h @@ -52,7 +52,7 @@ zombie zombies[SERVER_MAX_ZOMBIES] = {0}; bool hit_zombie(int index, int damage); void create_spawner(vec2 position); void draw_spawners(platform_window* window); -void draw_zombies(platform_window* window); +void draw_zombies(platform_window* window, uint32_t ystart, uint32_t yend); void spawn_zombie(int x, int y); u32 number_of_zombies_active(); |
