Complex sentence: Shakespeare's romances or tragicomic plays were written late in his career and published originally under either tragedy or comedy share some elements of tragedy featuring a high status central character but end happily like Shakespearean comedies.
Split into simpler sentences: Shakespeare's romances (tragicomic plays) were written late in his career and published originally as either tragedy or comedy. They share some elements of tragedy featuring a high status central character but end happily like Shakespearean comedies.