This commit is contained in:
Ladebeze66
2024-01-30 17:13:31 +01:00
parent 0e6abebb7b
commit 42caa739f9
714 changed files with 10 additions and 199273 deletions

View File

@@ -6,7 +6,7 @@
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/15 19:50:24 by fgras-ca #+# #+# */
/* Updated: 2024/01/29 20:23:13 by fgras-ca ### ########.fr */
/* Updated: 2024/01/30 17:04:53 by fgras-ca ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,10 +19,10 @@ void rescale_sprite(t_structure_main *w, t_state *state)
params.original_img = w->s_img.roomadslam[state->jkl];
params.original_width = 112;
params.original_height = 112;
params.new_width = w->s_map.map_s;
params.new_height = w->s_map.map_s;
params.px = w->s_player.px - w->s_map.map_s / 2;
params.py = w->s_player.py - w->s_map.map_s / 2;
params.new_width = w->s_map.map_s * 5;
params.new_height = w->s_map.map_s * 5;
params.px = w->s_player.px - w->s_map.map_s / 2 - 5;
params.py = w->s_player.py - w->s_map.map_s / 2 - 5;
rescale_image(&params, w);
}

View File

@@ -6,7 +6,7 @@
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/14 19:15:53 by fgras-ca #+# #+# */
/* Updated: 2024/01/29 15:47:48 by fgras-ca ### ########.fr */
/* Updated: 2024/01/30 17:11:58 by fgras-ca ### ########.fr */
/* */
/* ************************************************************************** */
@@ -45,8 +45,6 @@ void load_textures(t_structure_main *w, int *temp)
w->s_img.img_wall = mlx_xpm_file_to_image(w->s_win.mlx,
"sprite/wall.xpm", temp, temp);
load_roomadslam_textures(w, temp);
w->s_img.pedro_wall = mlx_xpm_file_to_image(w->s_win.mlx,
"sprite/pedrop/frame_061_delay-0.03s.xpm", temp, temp);
}
void init_buffer(t_structure_main *w)