feat: Added delta time variable

This commit is contained in:
Theo Champion 2025-07-31 14:07:56 +02:00
parent 02940e9ecf
commit 2bc214103b
6 changed files with 53 additions and 3 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:59:37 by kcolin #+# #+# */
/* Updated: 2025/07/31 13:23:32 by kcolin ### ########.fr */
/* Updated: 2025/07/31 13:55:08 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -28,6 +28,8 @@ typedef struct s_cub3d_data
t_player player;
t_keypresses keypresses;
int *screen_matrix;
int delta;
int last_tick;
} t_cub3d_data;
#endif // CUB3D_DATA_H