1
0

✏️」 norm: Cleand and normed player on minimap

This commit is contained in:
2024-09-17 10:48:20 +02:00
parent d4557ead6f
commit 0a91d7f2c6
5 changed files with 21 additions and 38 deletions

View File

@ -6,14 +6,14 @@
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/04 17:01:05 by madumerg #+# #+# */
/* Updated: 2024/09/12 12:54:48 by madumerg ### ########.fr */
/* Updated: 2024/09/17 10:40:27 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CUB3D_H
# define CUB3D_H
# include "../libft/includes/libft.h"
# include "libft.h"
# include "mess_err.h"
# include <stdlib.h>
# include <math.h>
@ -22,5 +22,4 @@
# include <stdio.h>
# include "parsing.h"
#endif

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/11 16:38:40 by adjoly #+# #+# */
/* Updated: 2024/09/16 13:36:04 by adjoly ### ########.fr */
/* Updated: 2024/09/17 10:47:26 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,11 +16,12 @@
# include "parsing.h"
# include <stdint.h>
typedef struct s_cub
typedef struct s_cub
{
void *mlx;
void *win;
void *images;
void *sprites;
void *img;
char **map;
t_coord p_coord;
} t_cub;
@ -42,12 +43,13 @@ typedef struct s_cub
*
* @return Minilibx go brrrr(useless always 0)
*/
int key_hook(int key, void *param);
int key_hook(int key, void *param);
/**
* @brief This function is used to create an image with the player position
*
* @param cub The address of a t_cub struct filled with mlx data and other thing
* @param cub The address of a t_cub struct filled with mlx data and other
* thing
*
*/
void *get_player_image(t_cub *cub, uint8_t key_pressed);