From 82d7941e81db53075b7ec69ffce16974d3dfbcb3 Mon Sep 17 00:00:00 2001 From: Theo Champion Date: Wed, 3 Sep 2025 16:41:51 +0200 Subject: [PATCH] feat: Added a little 'cheat' for the points --- src/utils/hooks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/hooks.c b/src/utils/hooks.c index 116e252..651d9d1 100644 --- a/src/utils/hooks.c +++ b/src/utils/hooks.c @@ -6,7 +6,7 @@ /* By: kcolin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/17 14:22:57 by kcolin #+# #+# */ -/* Updated: 2025/08/13 15:25:04 by tchampio ### ########.fr */ +/* Updated: 2025/09/01 15:39:07 by tchampio ### ########.fr */ /* */ /* ************************************************************************** */ @@ -37,6 +37,8 @@ int keypress_handler(int keycode, t_cub3d_data *data) data->keypresses.is_left_pressed = true; if (keycode == XK_Right) data->keypresses.is_right_pressed = true; + if (keycode == XK_p) + data->player.points += 500; return (0); }