added minimap

This commit is contained in:
Gregory Robledo 2024-11-15 15:39:12 +01:00
parent 96cc9096cd
commit 57b099d013
5 changed files with 110 additions and 8 deletions

View file

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* const.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* By: grobledo <grobledo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/31 17:00:59 by mcolonna #+# #+# */
/* Updated: 2024/11/12 17:56:05 by mcolonna ### ########.fr */
/* Updated: 2024/11/15 14:58:24 by grobledo ### ########.fr */
/* */
/* ************************************************************************** */
@ -27,4 +27,5 @@
# define FOV 0.66 // Width of the view plane (unit: cases)
# define MINIMAP_SCALE 8
#endif

View file

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* map.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* By: grobledo <grobledo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/01 13:59:04 by mcolonna #+# #+# */
/* Updated: 2024/11/12 15:10:07 by mcolonna ### ########.fr */
/* Updated: 2024/11/15 14:56:55 by grobledo ### ########.fr */
/* */
/* ************************************************************************** */
@ -157,4 +157,8 @@ bool check_map(const t_map *map);
/// @return Wanted case.
const t_map_case *map_get_case(const t_map *map, int x, int y);
void create_minimap(u_int32_t *img_data);
void draw_minimap(uint32_t *img_data, int map_x, int map_y);
void minimap_player(u_int32_t *img_data);
#endif