diff options
Diffstat (limited to 'src/init.c')
| -rw-r--r-- | src/init.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/09 14:50:09 by dkaiser #+# #+# */ -/* Updated: 2024/05/15 14:46:09 by dkaiser ### ########.fr */ +/* Updated: 2024/05/15 15:09:44 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,7 +18,6 @@ static void init_actor(t_game *game); int init(t_game *game) { - game->mlx = mlx_init(1920, 1080, "so_long", false); // TODO: make size and title dynamic game->input_direction = ZERO; @@ -36,7 +35,7 @@ static void init_hooks(t_game *game) static void init_actor(t_game *game) { mlx_texture_t *texture; - t_actor *player; + t_actor *player; player = &game->player; texture = mlx_load_png("textures/player.png"); @@ -49,5 +48,5 @@ static void init_actor(t_game *game) player->img = mlx_texture_to_image(game->mlx, texture); mlx_resize_image(player->img, player->size.x, player->size.y); mlx_image_to_window(game->mlx, player->img, player->position.x, - player->position.y); + player->position.y); } |
