-
Notifications
You must be signed in to change notification settings - Fork 0
/
draw_player.c
32 lines (29 loc) · 1.12 KB
/
draw_player.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* draw_player.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ahajji <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/10 15:56:23 by ahajji #+# #+# */
/* Updated: 2023/12/10 17:39:56 by ahajji ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
void draw_player(t_cub3d *data)
{
int i;
int j;
i = data->py - 1;
j = 0;
while (i < data->py + 1)
{
j = data->px - 1;
while (j < data->px + 1)
{
mlx_put_pixel(data->img_map, j, i, 0xFF0000FF);
j++;
}
i++;
}
}