diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/so_long.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/so_long.h b/include/so_long.h index bd40371..6834620 100644 --- a/include/so_long.h +++ b/include/so_long.h @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/08 14:14:02 by dkaiser #+# #+# */ -/* Updated: 2024/05/14 12:41:08 by dkaiser ### ########.fr */ +/* Updated: 2024/05/14 13:52:05 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -84,7 +84,8 @@ void player_process(t_game *game); int draw(t_game *game); int draw_map(t_game *game); void on_key_input(mlx_key_data_t event, void *params); - +t_vector grid_to_screen_pos(t_ivector grid_pos, t_ivector tile_size); +t_ivector screen_to_grid_pos(t_vector screen_pos, t_ivector tile_size); int check_collision(t_vector a_pos, t_vector a_size, t_vector b_pos, t_vector b_size); |
