From 575990647d8ee677ff9515ecb0c17da9fe66312f Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 16 Mar 2020 18:57:40 +0100 Subject: fatfingered solution to the sprites problem, changes needed --- inc/cub3d.h | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index 6c9a010..348d82b 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -78,6 +78,7 @@ int8_t ft_draw_verline(t_cub *cl, int32_t x, int32_t y1, int32_t y2); void ft_sprite_width(t_cub *cl, t_sprite *sprite); void ft_sprite_height(t_cub *cl, t_sprite *sprite); +void ft_sort_sprites(t_cub *cl); void ft_calc_sprite(t_cub *cl); void ft_draw_sprite(t_cub *cl, t_sprite *sprite); void ft_calc_trap(t_cub *cl); -- cgit v1.2.3 From 0cde149ec5e478c3d6283136065ff0129231c25d Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 16 Mar 2020 19:43:16 +0100 Subject: bunchoshit --- inc/cub3d.h | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index 348d82b..4b52aab 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -79,6 +79,7 @@ int8_t ft_draw_verline(t_cub *cl, int32_t x, void ft_sprite_width(t_cub *cl, t_sprite *sprite); void ft_sprite_height(t_cub *cl, t_sprite *sprite); void ft_sort_sprites(t_cub *cl); +void ft_sort_s_t(t_cub *cl, t_sprite *sprites[4096]); void ft_calc_sprite(t_cub *cl); void ft_draw_sprite(t_cub *cl, t_sprite *sprite); void ft_calc_trap(t_cub *cl); -- cgit v1.2.3 From 0036fe1e23be842e8baa48162bcdb3bf632b02de Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Wed, 18 Mar 2020 18:59:59 +0100 Subject: gng --- inc/cub3d.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index 4b52aab..9c906be 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -76,10 +76,8 @@ void ft_draw_circle(float a, float b, int32_t color, t_cub *cl); int8_t ft_draw_verline(t_cub *cl, int32_t x, int32_t y1, int32_t y2); -void ft_sprite_width(t_cub *cl, t_sprite *sprite); -void ft_sprite_height(t_cub *cl, t_sprite *sprite); +void ft_sprite_h_w(t_cub *cl, t_sprite *sprite); void ft_sort_sprites(t_cub *cl); -void ft_sort_s_t(t_cub *cl, t_sprite *sprites[4096]); void ft_calc_sprite(t_cub *cl); void ft_draw_sprite(t_cub *cl, t_sprite *sprite); void ft_calc_trap(t_cub *cl); -- cgit v1.2.3 From d114d2571a3808eba1f0a5038ad862b790a96074 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 18 Mar 2020 21:35:54 +0100 Subject: In progress --- inc/cub3d.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index 042faa3..4f1bc72 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -84,6 +84,8 @@ void ft_calc_sprite(t_cub *cl); void ft_draw_sprite(t_cub *cl, t_sprite *sprite); void ft_calc_trap(t_cub *cl); void ft_draw_traps(t_cub *cl, t_sprite *sprite); +void ft_calc_heal(t_cub *cl); +void ft_draw_heals(t_cub *cl, t_sprite *sprite); void ft_draw_skybox(t_cub *cl); void ft_macos_suffer_animation(t_cub *cl); void ft_linux_suffer_animation(t_cub *cl); @@ -118,6 +120,7 @@ size_t ft_get_map_h(char **map); size_t ft_get_map_w(char **map); void ft_get_sprite_spawn(t_cub *clist); void ft_get_trap_spawn(t_cub *clist); +void ft_get_heal_spawn(t_cub *clist); int8_t ft_check_map_line(char *line, uint8_t l, t_cub *clist); int8_t ft_check_ext(const char *filep, const char *ext); int8_t ft_check_not_found(const char *path); -- cgit v1.2.3 From 8fda101ccda5c23bfd9cd604f0c3124a9b83aa1d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 18 Mar 2020 22:21:29 +0100 Subject: ok bav --- inc/cub3d.h | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index 4f1bc72..84ce976 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -184,5 +184,6 @@ t_bmp_rgb ft_hex_to_rgb(uint32_t color); uint32_t ft_darken(t_rgb rgb, t_cub *cl); void ft_death_screen(t_cub *cl); void ft_get_fps_count(clock_t delta_time, t_cub *cl); +void ft_find_item(t_player *pl, t_map *ml, t_cub *cl); # endif -- cgit v1.2.3