cub3d/inc/collision.h

24 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* collision.h :+: :+: */
/* +:+ */
/* By: qmennen <qmennen@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/04/22 14:40:47 by qmennen #+# #+# */
/* Updated: 2025/05/23 15:11:20 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef COLLISION_H
# define COLLISION_H
# include "cub3d.h"
int collision_horizontal(t_map *map, t_player *player, double xa);
int collision_vertical(t_map *map, t_player *player, double ya);
int collision_sprite(t_map *map, t_player *player, double xa, double ya);
void collect(t_player *player);
#endif