mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
feat: basic zombie movement (very bad)
This commit is contained in:
parent
2fc8cf21a1
commit
8445f240a2
4 changed files with 52 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue