summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-09 19:25:14 +0200
committerDominik Kaiser2024-05-09 19:25:14 +0200
commit9306ce8b7950960d72a8e0871d917df181d900fa (patch)
treef91e174eb0340a7a931311c520947d1f4a5bab01 /src/init.c
parente2c309d1bec9fb18e39d453a1dfdccfa877f5633 (diff)
downloadso_long-9306ce8b7950960d72a8e0871d917df181d900fa.tar.gz
so_long-9306ce8b7950960d72a8e0871d917df181d900fa.zip
Add player image
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);
}