feat: Added a little 'cheat' for the points

This commit is contained in:
Theo Champion 2025-09-03 16:41:51 +02:00
parent c4e5ff619a
commit 82d7941e81

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);
}