/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* map_spawn.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: kdx height) { x = -1; while (++x < map->width) { tile = map_get(map, x * TSIZE, y * TSIZE); if (tile == TILE_PLAYER) { game->player.pos[0] = x * TSIZE; game->player.pos[1] = y * TSIZE; map_set(map, x * TSIZE, y * TSIZE, '0'); } } } }