mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
feat: Added a little 'cheat' for the points
This commit is contained in:
parent
c4e5ff619a
commit
82d7941e81
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue