From dd82d902a5f9bd4e2aed37b126c56beae148275a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 28 Jul 2025 13:04:32 +0200 Subject: [PATCH] feat: draw view cone (without DDA) --- src/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 2e7ac90..4a4a88d 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: kcolin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/17 14:14:30 by kcolin #+# #+# */ -/* Updated: 2025/07/28 15:20:30 by kcolin ### ########.fr */ +/* Updated: 2025/07/28 15:21:17 by kcolin ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,7 +17,6 @@ #include "draw/drawutils.h" #include "map/map_checker.h" #include "draw/draw_map.h" -#include "map/mapdata.h" #include "utils/hooks.h" #include "utils/frees.h" #include @@ -30,8 +29,8 @@ void init_player(t_mapdata *mapdata, t_player *player) { player->health = 100; - player->x = mapdata->startx * SIZE; - player->y = mapdata->starty * SIZE; + player->x = mapdata->startx; + player->y = mapdata->starty; if (mapdata->map[mapdata->starty][mapdata->startx] == 'N') player->yaw = M_PI; else if (mapdata->map[mapdata->starty][mapdata->startx] == 'S')