"I want to be drunk, and happy, and then I want to explode."
— Jeremy Clarkson
A character died.
Time for some traditional funeral? Eh... someone's not feeling that serious, be it writers or characters—heck, maybe the character who died would be insulted by anything so somber. So what's a writer to do? Have someone say what a great time it must've been!
If it's not lampshaded with the trope name itself, then chances are it will be something along the lines of "That's how I wanna go." Someone will say this about Out with a Bang a good amount of the time, regardless of whether it's true.
Dying in their lover's arms, especially after not having having seen the other for years, might also qualify, simply due to the over the topCrowning Moment of Heartwarming aspect. But see below.
Compare A Good Way To Die.
Note: If no one says anything, it doesn't count. This is not about a character's Crowning Moment of Awesome intersecting with their death—that's Dying Moment of Awesome. This is about a character in-story acknowledging this, ironically or not. By the same token, a character going out quietly in their sleep after spending the most wonderful time with their family still isn't this unless someone says or does something in-story to acknowledge it.
Bernkastel of all people acknowledges this about Clair's end in Requiem of the Golden Witch. She then goes on to subvert it in the tea party.
One Piece: The death of Doc Hiriluk involves him blowing himself up, attacking Wapol, making Dalton realize the errors of his ways, and creating a dramtatic entrance for Chopper. Given his last words, he had achieved everything he wanted.
In the Sandman mini-series, Death: The Time of Your Life, Barry reflects upon the death of Larry:
Barry: Considering the damage he must have done to that body —- thirty years of every drug a man could snort, sniff or shoot, and the last ten years as a practicing health-freak and gourmand... it's a blessing he got as long as he did. Probably how he would have wanted to go. Me, I want to be squashed by a bull elephant at the moment of orgasm while sandwiched ecstatically between two or three agile greased Nubian virgins.
It also plays as a Brick Joke later in the series.
In Cabin Fever one of the teens is convinced the deadly disease that's been going around will infect her soon enough. She copes with this idea surprisingly calmly:
Marcy: It's like being on a plane when you know it's going to crash. Everybody is screaming "We're going down! We're going down!" And all you want to do is grab the person next to you and fu*k the sh*t out of them, because you know you just gonna die soon, anyway.
She proceeds to do just that, throwing the random dude who happened to be beside her at the time down on the bed and going at it like a wild cowgirl. She wasn't even patient enough to use a condom, which turned out to be bad news for the guy, because she was already infected and didn't even know it.
In Anansi Boys, the dad goes out in a way that's good enough that people assumed he did it intentionally. He died of a heart attack during karaoke, fell off the stage, threw out his hand for balance and grabbed a woman's shirt and tore it off, exposing her breasts. Fat Charlie finds this hideously embarrassing.
In Scott Westerfeld's Succession novels, those who fail the Risen Emperor in a particularly spectacular way are expected to take the Blade of Error — traditionally a self-inflicted knife wound to the abdomen, but those who had been previously offered Immortality for their service to the Emperor are allowed to kill themselves however they want. At least one character in that situation was described as going out "gasping with orgasm as she went".
From Discworld: In Reaper Man, the wizards are giving a "deathday" party (Discworld wizards naturally know the time of their deaths beforehand) to their oldest member, Windle Poons. The old chap is having a great time, but it's a bit after his expected time of death when he mentions that he could do with "one of Mister Dibbler's famous meat pies..." and dies mid-sentence.
That's how I want to go.
What, muttering about meat pies?
Thief of Time raises the possibility of death via diving into a vat of chocolate. The "person" involved was Unity, formerly Myria LeJean, ex-Auditor-of-reality. The vat was requested since Auditors who take on humanoid form have such hypersensitive taste buds that a single taste of chocolate kills them via sensory overload. Death and the other Horsemen had to admit that dying by Guilty Pleasures cranked Up to Eleven was a novel way to commit suicide.
The Book of Stupid Lists had a list of "7 Quite Nice Ways to Die" but stopped after 'Being orgasmed to death by Charlie's Angels' and 'Drowning in a tidal wave of cointreau' because that's all they could think of.
In Mystery Science Theater 3000 episode Time Chasers, Crow attempts to change history so Mike won't be trapped in space. When he succeeds, he learns that the Satellite of Love's human occupant is Mike's Jerkass brother Eddie, and that in the altered reality, Mike became a successful rock musician, but was killed while touring when a groupie threw her hotel key (with a large keyfob) to him he got hit in the head. Eddie comments that he's proud of the way his little brother went.
In almost any incarnation of Star Trek, Klingons are known to express this sentiment whenever they hear about a death in combat or battle, especially if it qualifies as "glorious". Considering their afterlife functions like Valhalla, in that you have to die in battle to get in to the good part, it's a pretty understandable sentiment.
In Torchwood, one of the first aliens the team fought against on the show was a body-possessing sex alien (yes, it was that kind of show) who fed off of men's lust by turning them into dust upon reaching an orgasm. When the team saw CCTV footage of its first victim, one of them comments "That's how I'd like to go!"
Servilia's theatrical and ritual suicide in front of her rival's house in Rome. It even gets commended by another long-time enemy.
In Quest For Glory IV, the farmers talk about the Rusalka, a spirit who lived in the lake and lured men into the water with her, seducing them and then pulling them under. Ivan the elephant herder comments "What a way to go."
During the Smith Brothers boss fight in Sunset Riders, whichever brother dies last raises his hands, mutters "That was a bang", and then falls from his platform... before blowing himself up.
The Adventures of Dr. McNinja: Dan McNinja, regarding the death of Gordito's father, The Amazing Flying Shooting Juan: "What an... incredible way to die."
Dinosaur Comics has a strip about the related concept of deaths (and other events) that are "extremely sad, but also extremely amazing." T-Rex proposes a new word to describe it:
T-Rex: I call my new word "sawesome"! Like sad and awesome? Someone dropped an arrow out of a plane and it nailed my friend in the eye and it was extremely sawesome?
It's Walky!: one of the characters fakes his own death as...having died in a fire while in the middle of an orgy with various women. Once someone else finds out he comments that they were supposed to be proud rather than sad - he almost wishes that he did go like that.
One villain uses his dying breath to give thanks that he was stabbed In the Back. "How'd you know? Mmy fvrt dthhh..."
Parodied once on the Family Guy episode "Long John Peter" when Peter's parrot died.
Dr. Jewish: Mister Griffin, I'm afraid that your Parrot is dead.
Peter: Noooo! Did he at least die with dignity?
Dr. Jewish: Well, he convulsed a lot and fell off the operating table. Then he flopped around a little on the floor, then a passing nurse accidentally stepped on him and kicked him into a puddle of urine, which must have frightened him because his bowels released all over himself. I tried to pick him up, but then, I got angry because some of it got on my thumb. So I threw him against the wall, and that's where he died.
"Amazon Women In The Mood" has a non-verbal variant where Fry and Zapp go between properly terrified and excited. Verbally, there's:
Fry: (after being sentenced to death by "snu-snu") [resigned] I never thought I would die this way. [brightens] But I've always really, really hoped.
"A Pharaoh To Remember":
Fry: Dearly Beloved, we are here today to remember Bender, taken from us in the prime of life; when he was crushed by a runaway semi, driven by The Incredible Hulk.
Bender: Aww, you knew my favorite cause of death.
"A Clockwork Origin":
Fry: (carried away by a robot pterodactyl) This is a cool way to die!
A rather demented example was Darkwing Duck foe Splatter Phoenix, a Mad Artist who died when she was splashed with turpentine. (Apparently, she was, like many of her creations, a being made of paint.) As she melted away, she mused "Oh well, at least my work will be worth more when I'm gone..."
Tommy Cooper. You know it's true. His death (heart attack while performing on live television) is constantly referred to as an artist's dream come true, or at least a generally good way to go.
Further to that, comedian Dick Shawn had a heart attack and died in the middle of his routine in front of his favorite audience (college students).
While watching The Goodies, Alex Mitchell found one episode — "Kung Fu Kapers" — so funny he laughed for nearly a half-hour straight. Only someone in peak physical condition could survive that kind of exertion for so long. He didn't, literally dying of laughter. His wife wrote The Goodies a letter, thanking them for making her husband's last half-hour of life so happy.
Organ virtuoso Louis Vierne went to give a performance at Notre Dame Cathedral. He told his assistant, "I think I'll die tonight." He gave a masterful performance, with some in his audience saying that it was the best he'd ever done. Going back to the console for his third(!) encore, he collapsed, suffering a massive stroke and dying, surrounded by adoring fans, in the middle of Notre Dame, at the height of his musical prowess. What a way to go.
There is a legend that Genghis Khan died because of the exhaustion of having fought a battle in the morning, going and fighting two duels and lastly bedding a captured princess when he gave out on climax.