summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.c b/src/init.c
index 7c9645b..0aa6664 100644
--- a/src/init.c
+++ b/src/init.c
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/09 14:50:09 by dkaiser #+# #+# */
-/* Updated: 2024/05/09 17:48:10 by dkaiser ### ########.fr */
+/* Updated: 2024/05/09 18:37:18 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -25,6 +25,8 @@ int init(t_game *game)
init_hooks(game);
init_player(&game->player, 960, 540);
// TODO: make player spawn point dynamic
+ int w, h;
+ game->player.img = mlx_xpm_file_to_image(game->mlx, "textures/player.xpm", &w, &h);
return (0);
}