feat: basic zombie movement (very bad)

This commit is contained in:
Khaïs COLIN 2025-08-18 13:21:52 +02:00
parent 2fc8cf21a1
commit 8445f240a2
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
4 changed files with 52 additions and 2 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:14:30 by kcolin #+# #+# */
/* Updated: 2025/08/12 14:49:01 by tchampio ### ########.fr */
/* Updated: 2025/08/18 13:23:26 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,6 +31,7 @@
#include <unistd.h>
#include <fcntl.h>
#include "utils/time.h"
#include "sprites/move_sprites.h"
int game_loop(t_cub3d_data *data)
{
@ -41,6 +42,7 @@ int game_loop(t_cub3d_data *data)
data->last_tick = get_milliseconds();
reset_matrix(data);
move_player(data);
move_sprites(data);
raycaster(data, &ray);
sprite_caster(data);
matrix_to_image(data);