A character is trapped in a game, and the only way to escape is to win. A HolodeckMalfunction may be involved.

The graphics of the videogame in question are usually either implausibly realistic or laughably primitive compared to those available in the real world at the time, depending on [[PacManFever how out of touch the producers are]].

SisterTrope to TrappedInTVLand and a Subtrope of YourMindMakesItReal; almost always a feature of TheMostDangerousVideoGame. Overlaps with DeepImmersionGaming in some ways. The main difference is that whereas DeepImmersionGaming is basically a variant form of an ImagineSpot, this trope involves the game becoming very real. Anyone trapped in a PortalBook may find themselves facing a variant of this (finish the story to exit).


[[folder: Anime and Manga ]]

* The basic plot of ''LightNovel/SwordArtOnline'': everyone's minds are trapped in an MMORPG, and the equipment is set up so that dying in the game kills you in real life. However, if a player, ''any'' player, manages to beat the boss of Floor 100, then everyone goes free.
* ''Anime/BaldrForceEXEResolution'' is made of this trope.
* In the ''Manga/MahouSenseiNegima'' manga, due to a mischievous... something, Negi and friends are trapped in Chisame's video game.
* ''Manga/ToLoveRu'' had the characters get stuck in an RPG during the Trouble Quest arc. Later on, they voluntarily place themselves in a board game.
* Due to HolodeckMalfunction, at least one of the 50 children in the Virtual Console "Cocoon" in the ''Manga/DetectiveConan'' NonSerialMovie ''Phantom of Baker Street'' need to WinToExit, or else their brains will be literally fried.
* ''Manga/HunterXHunter'' had Greed Island, where the only way to pause the game was to advance your objectives by a certain amount. There are people who have actually settled down to live in the gameworld because they couldn't get that LastLousyPoint that they needed to escape.
* ''Manga/{{Bleach}}'': Ichigo in the Fullbring arc gets trapped in Yukio's video game dimension fighting Ginjo Kugo.
* In ''LightNovel/HaiyoreNyarkoSan'', the cast gets trapped in a DatingSim and Mahiro (cast as the PlayerCharacter) has to choose a girlfriend by the end of the school year.
* Supposedly, this was the case in the "Legendary Heroes" arc of ''Anime/YuGiOh'', where defeating the game would release Kaiba, Yugi, Jonouchi, Mokuba, and Mai from the virtual reality world; however, the villains kept trying to change that, both by sending a team of Mooks to unplug the VR pods and by rigging the game itself to make it ''much'' harder (they ultimately failed on ''both'' fronts; Honda and Anzu successfully guarded the pods in the real world long enough for Yugi and his entourage to defeat the villains' avatar in the virtual world and escape.)
* An episode of ''Anime/TheTowerOfDruaga'' features a direct throwback to the [[VideoGame/TheTowerOfDruaga game by the same name]]. Jil's party encounters the original 40 floor tower from the game buried inside the now much larger tower. Jil enters it and must be controlled like a video game character with a nearby console. He's trapped inside the original tower (and is constant respawned every time he dies in the GuideDangIt game) until they can manage to maneuver him through all 40 floors.

[[folder:Comic Books]]
* Happens to Ellie Dee is an issue of the ''ComicBook/CherryComics''. She ends up derezzing the video game's main character by having sex with him.
* In the ''Doc Samson'' miniseries, Tina Punnett is trapped in a VR game that's been modified to cause psychosomatic damage to the player. To get out, she runs herself through with a sword, causing lots of pain but also causing the game to end.
* There was this short series where this trope was inverted. Memory fails me, but the gist of it was, a super-hacker was forced to play against an AI in an old videogame. The AI rigged the game so there was absolutely no way it could ever lose... problem was, the game was fixed so the only way to end it was ''losing''...


[[folder: Fan Works ]]

* Sort of, in ''Fanfic/WithStringsAttached''. Although the Vasyn quest takes place across several real worlds, [[spoiler: it all turns out to be a giant live-action quasi-game engineered by Jeft]]. He fixes things so that after Shag and Varx discover the truth, they still cannot pull the four out; the computer ice in between them and the return program won't melt until they bring the third piece of the Vasyn back to C'hou. But by then things have changed so considerably that they can't rescue the four anyway...
* Averted, horrifically, in the premise of the ''RolePlay/ReplayValueUniverse'' of ''Webcomic/{{Homestuck}}''. The Door Beyond The End, which is ''supposed'' to lead to [[spoiler: the universe the players created]], instead dumps them at the beginning of another session of Sburb, with a bunch of strangers. At the end of this session, the hapless player will find another Door Beyond The End, which dumps them at the beginning of another session of Sburb...


[[folder: Film ]]

* ''Film/{{Arcade}}'' features a video arcade named [[MeaningfulName "Dante's Inferno"]], where a new virtual reality arcade game called, boringly enough, ''Arcade'' is being tested. If you lose, you're trapped inside the game. Turns out the game is PoweredByAForsakenChild. Also, [[spoiler:by winning, the protagonist ends up releasing a SealedEvilInACan (in the revised ending). NiceJobBreakingItHero]].
* In ''Film/TheDungeonmaster'', the hero and his girlfriend get pulled into a computer game. If the hero wins the game, they'll both be freed. If they lose, he forfeits his girlfriend's soul.
* In ''Film/TheBeach'', Leonardo Di Caprio goes crazy and imagines the world as a blocky videogame.
* Spencer in ''Film/FreddysDeadTheFinalNightmare'' gets stoned and sucked into a game and is promptly killed by Freddy and his custom "Power Glove".
* In ''Film/{{Tron}}'', computer programmer Flynn gets kidnapped by the Master Control Program into the computer system and is forced to compete in video games "until he dies playing". He escapes, not by winning, but by spotting a hole made when one of his opponents crashed into the wall and making a break for it. [[FridgeLogic Probably best not to think too hard about that.]] ''Film/TronLegacy'' (and the ''[[VideoGame/TronTwoPointOh Tron 2.0]]'' AlternateContinuity) kicks this up a notch or two with a different villain and such, but the premise stays the same.
* Almost all of the film ''Film/{{Existenz}}'' takes place in a virtual reality gameworld with assassins stalking the main characters. It's only after the heroine exposes [[spoiler:her partner]] as an operative who was sent to kill her all along and kills him instead that the game slowly unravels and she wakes up for real.
* In the ''Bishop Of Battle'' segment of the four-part film ''Film/{{Nightmares}}'', J. J. Cooney is trapped inside the eponymous video game, after failing to complete level 13 the game becomes real.
* In the film ''Film/StayAlive'', a group of beta testers realize that they are slowly dying off one by one in the exact same fashion that their avatars in the game they are testing die. It is later revealed that playing this game summons the ghost of a sociopathic killer who delights in killing you in the most horrendous ways possible.
* In ''Film/{{Inception}}'', this is what the team realizes they have to do in order to escape Fisher's mind once they learn his subconscious has been militarized. Only by incepting Fisher and making him achieve catharsis can the team avoid being "killed" by the projections.
* The game in ''Film/SpyKids 3D'' requires this.
* In the film ''Film/{{Nerve}}'', groups of teenagers enter a "truth-or-dare"-styled game on their smart-phones. However, the players must win the game or else they will lose everything. For those who attempt to report the game to the police, they have "snitched" in the game, causing them to become a prisoner to the game unless they win.
* Although a board game and not a video game, the premise of ''Film/{{Jumanji}}'' is the same. Rolling the dice results in the heroes having todeal with [[EscapedAnimalRampage animals running amuck all over town,]] [[TheMostDangerousGame a big game hunter interested in taking a human trophy,]] [[ManEatingPlant a fast growing plant with a humongous appetite]] that also shoots poison darts. Once a player gets the winning roll of the dice, everything goes back to normal as if nothing happened.
** In ''Film/JumanjiWelcomeToTheJungle'', four teens are sucked into a video game version of Jumanji, and have to complete the game in order to exit.

[[folder: Literature ]]

* In Vivian Vande Velde's ''Literature/HeirApparent'', the main character is playing a virtual reality game at a sort of VR arcade, and becomes unable to quit when anti-videogame protesters damage the equipment -- interestingly, it has the opposite message from most trapped-in-a-videogame stories (i.e. instead of being harmful, videogames are harmless fun and the people who think they're evil are misguided and possibly even dangerous).
* A rare boardgame example occurs in ''Literature/HarryPotterAndThePhilosophersStone'', where Harry, Ron, and Hermione take the part of pieces on a chessboard and win to get to the next test protecting the stone.
* The TabletopGame/{{Jumanji}} game works that way in the ''Literature/{{Jumanji}}'' series.
** Ditto for ''Literature/{{Zathura}}'', from the same author.
* In the Creator/PiersAnthony novel ''Killobyte'' the protagonists become stuck in a virtual reality {{MMORPG}} due to the interference of a hacker.
* This is how the action gets started in Creator/TadWilliams' ''Literature/{{Otherland}}'' series. Kids around the world end up in mysterious comas, and the protagonists start to suspect that it has something to do with an online playground. Then they get caught themselves, and it becomes apparent that they only way to escape from the virtual world is to solve its mysteries (and possibly destroy it from the inside). The story contains no moralism whatsoever on computers and computer games; the MetaVerse is simply another arena for human virtues and vices to take place.
* In Creator/SergeyLukyanenko's ''Literature/LabyrinthOfReflections'' trilogy, the Deep program puts a person into a state of hypnosis, during which he or she will perceive a poorly-rendered image on the screen as reality. The first person to use this was a man who randomly found the Deep program online and ran it. The program played a ten-second fractal-like video, after which the man started up ''VideoGame/{{Doom}}''. To his horror, he found himself walking the corridors, shooting weapons, fighting monsters. No matter what he tried, he could not get himself to "awaken". After many hours of playing, he finally beat the game, at which point his subconsciousness allowed him to "exit". He found a nearly-broken keyboard and his own bloody hands (his own blood).
* During ''Literature/GalaxyOfFear'', the Arrandas visit a theme park and go to see something called "The Nightmare Machine", a sim purportedly using mind-scanning and HardLight technology to [[IKnowWhatYouFear bring visitors' fears to life]]. It would start with relatively minor things and progress to worse fears, and the visitor won if they could make it through their worst without bailing out. Of course, they get trapped in it, the FailsafeFailure doesn't work, and the kids finally realize they have to just [[FaceYourFears skip to their worst fear]] - [[spoiler: [[AdultFear one of them dying and leaving the other alone]]]]. It then ends and they're both able to walk out of it.
* In the novelisation of ''Series/RedDwarf'', the video game Better Than Life is essentially a LotusEaterMachine; only by rejecting the perfect universe offered by the game could players "win" and be allowed to exit. (The series' version was harmless to anyone but Rimmer, and could be exited at will; the novels [[DarkerAndEdgier changed it]] from an expensive toy to a lethal drug.)

[[folder: Live Action TV ]]
* The ''Series/StargateSG1'' episode "Avatar" featured Teal'c having to fight his way out of a virtual combat scenario. His subconscious, unfortunately, kept making his job harder. The game reset the scenario every time he lost, and adapted so that he couldn't rely on information gained from the previous run. It had a built in safety exit (getting to the elevator ended the scenario), but since Teal'c considered giving up equivalent to losing, the game would not let him escape without winning. ''Also,'' because part of him believed the Goa'uld would never really be defeated, the game [[TheComputerIsACheatingBastard kept cheating]] every time he should have won. Cardiac arrest would have eventually killed him in reality.
* ''Series/AreYouAfraidOfTheDark'':
** In the episode "The Tale of the Renegade Virus", a VR game goes awry and if the main character doesn't beat it, the virus will literally invade his brain and take him over.
** Subverted in the episode "The Tale of The Pinball Wizard". A kid gets trapped in a pinball game, and he believes that to escape, he needs to win. Turns out, he's not quite so lucky, and it's implied that he's trapped there forever.
* In the ''Series/StarTrekTheNextGeneration'' episode "A Fistful Of Datas", the only way the holodeck would shut down is if Worf, Troi, and Alexander were able to win a wild west shootout. As the name suggests, it's a shootout against copies of Data, with all his android abilities to make them superior to any living opponent.
* ''Series/StarTrekDeepSpaceNine'':
** This is subverted in the episode "Move Along Home." After being cheated by Quark, a group of aliens from the Gamma Quadrant decide to show him "an honest game" that involves four playing pieces trying to make it "home" down a tiered board. Meanwhile, Sisko, Dax, Kira, and Bashir find themselves in a maze-like series of rooms, with strange puzzles and scenarios in each room and a figure of one of the aliens telling them to "move along home." They (as well as Quark) quickly realize that the four crew members are trapped in the game and assume that this trope is in effect. After several narrow escapes, they reach the last room- a shaking, cliff-filled cave. As they cross [[spoiler: they fall and rematerialize in Quark's, where the aliens say that Quark has lost and laugh when they discover the "players' " terror- after all, it was only a game!]]
** Subverted with the episode "Our Man Bashir." At the last minute, Bashir goes OffTheRails and deliberately ''loses,'' invoking a NonstandardGameOver that the program hadn't accounted for, confusing it long enough to save both himself and his friends. ([[spoiler:Specifically, he had his heroic protagonist pull a massive FaceHeelTurn and activate the villain's EarthShatteringKaboom device himself, something that the game's dev team obviously did not think of.]])
* ''Series/StarTrekVoyager'' get into the act with "Worst Case Scenario," where it turns out that [[FaceHeelTurn Seska]] has [[HolodeckMalfunction reprogrammed one of Tuvok's programs]] to [[EverythingTryingToKillYou kill Tuvok and Tom Paris]]. Janeway helps out by playing DeusExMachina.
* ''Series/TheXFiles'': Episode "FPS" is built of this trope. One guy who is an ace of a gamer and an exquisite programmer doesn't make it. Mulder almost loses, but Scully saves his butt.
* The "John Quixote" episode of ''Series/{{Farscape}}'' had VR "game blobs". Dying inside of the game only returns you to the start of the level. The real problem was getting out of the game, as the exit trigger had been sabotaged. Chiana does mention, though, that brain damage resulting from the games is not unheard of.
* In the ''Series/WarOfTheWorlds'' episode "Totally Real", the loser of the VR game lost his life. This turned out to be the entire point of the simulator's design.
* ''Series/RedDwarf'' had the episode Back to Reality, in which the crew think they've just been booted out of a game for dying, but have actually survived and are now suffering a hallucination which is designed to make them suicidal. Their hallucinating behaviour maps into real-world actions well enough that they almost kill themselves simultaneously in both worlds before the ship's computer pulls off a literal DeusExMachina.
* Inverted in one Creator/{{Syfy}} [[Film/SyfyOriginalMovie movie]] (anyone remember the name?) in which a malfunction causes the video game boss to animate the motion-capture exoskeleton in the real world and go on a murderous rampage.
* ''Series/EstateOfPanic'': The show's winner is the only one seen actually leaving the house. Three of the losers are left trapped in the rooms, and the other three are escorted to some unknown place in the mansion by the butler.
* ''Series/TodaysSpecial'': Thanks to Waldo's "automatic wishing machine", the gang gets trapped in an 80's era video game called Monkey Maze. Averted in that they fail to make their way through but escape by wishing to be on the moon instead.
* ''Series/{{Exit}}'' and the Japanese show that inspired it are game shows where teams have to solve challenges to move onto the next room or be "killed" by that particular rooms death trap. They of course aren't killed but the show likes to pretend they are.
* The ''Series/TheLibrarians2014'' episode "And the [[ExpospeakGag Point of Salvation]]" has a twist on this. The Librarians are trapped in a GroundhogDayLoop created by a malfunctioning magic-powered computer; eventually it turns out that the malfunctioning computer is overwriting reality with video game tropes, and Ezekiel is stuck in an EscortMission to get the other three out alive. Interestingly, [[spoiler:he only has to get ''them'' out. If he himself dies in the attempt, it's fine as far as the game is concerned. He accepts that and performs a HeroicSacrifice. Luckily, Cassandra is able to "restore" him, although he loses all memory (and CharacterDevelopment) of the events]].
* ''Series/{{Goosebumps}}'': In "The Haunted House Game" episode, two kids are sucked into a magical board game inside a creepy abandoned house. The only way to get out is to win the game while [[TheGamePlaysYou not getting killed]].
* An episode of ''Series/Warehouse13'' had Fargo from ''Series/{{Eureka}}'' program a virtual reality game and use an Artifact to help make it more real. The artifact caused players to become trapped in the game which manifested their greatest fears. They couldn't get out until those fears were conquered.
* The {{Halloween Episode}} for ''Series/{{Power Rangers Ninja Steel}}'', titled "Grave Robber", sees the five main Rangers trapped playing a Halloween-themed board game the episode is named for, controlled by the antagonistic {{Game Show Host}} Cosmo Royale. In a slight subversion of the trope, the Rangers play the game in reality but are repeatedly drawn inside the game's world to fight monsters they had already defeated (this subverts {{Clip Show}} by using footage from the Sentai, ''Series/{{Shuriken Sentai Ninninger}}'', that had not been adapted into the Ninja Steel episodes its episodes resulted in). They escape when the {{Sixth Ranger}}, Levi the Gold Ranger, counters Cosmo's [[ScrewTheRulesIMakeThem Screw the Rules, I Make Them!]] with his own [[MyRulesAreNotYourRules My Rules Are Not Your Rules]], shooting and destroying the magical hourglass that had trapped the Rangers in the game (and making everyone wonder why they didn't just try [[WhyDontYouJustShootHim that]] to begin with).

[[folder: Tabletop Games ]]

* ''TabletopGame/{{The Splinter}}'' runs on this. Players are only allowed out of the game if they complete their objective and, if a Player's Avatar dies, the Player dies on Earthside. This isn't a side effect of the VR technology being used, rather it's because the Mega Corp. in control of the VR technology will give you an immediate lethal injection if you lose.
* Used for the Climax of the ''TabletopGame/MutantsAndMasterminds'' adventure module, "[[http://grfiles.game-host.org/2e_files/toyswbtoys.zip Toys Will Be Toys]]".


[[folder: Video Games ]]

* ''VideoGame/MetalGearSolid Mobile'', with the flimsiest of justifications.
* ''VideoGame/YuGiOhTheFalseboundKingdom'' subverts this. You beat the VR game's main villain about a third of the way through, only for the creator of the game to take over, delete the villain, and attack you from behind. In order to actually win, you need to break out of the game and [[CyberSpace enter the computer itself]].
* Inverted in the adventure game ''VideoGame/{{Gateway}}'' - there is a Virtual Reality casino that is actually a ruse set up by the BigBad, who intends the player to always win and keep playing - therefore, the player must force themselves to lose. [[spoiler:Folding in poker does the trick]].
* In ''VideoGame/{{Persona 4}}'' there's a dungeon based entirely on blocky classic Dragon Warrior-type graphics... since the characters are going inside the collective subconscious as represented by television and dealing with people's internal imaginations, comforts, and insecurities, this is pretty justified.
** And that its [[ThatOneBoss Boss Battle]] allows for a ShoutOut to the Game-play style of the first two ShinMegamiTensei games is the cherry on the cheesecake.
* An optional side-quest in ''KnightsOfTheOldRepublic'' involves some SchmuckBait in the form of an alien artifact. Opening it traps you with the prison's occupant whose mind is trapped inside, and whose body died long ago. However, ''your'' body is currently unoccupied. He challenges you to a game of riddles to see who gets dibs on the body.
** Of course, the Brotherhood of Shadow GameMod cranks this one up with a similar artifact. The Brotherhood wants the PlayerCharacter as the avatar of their HiveMind, but first must conquer your mind to do it. Cue ''two'' massively trippy rounds of BattleInTheCenterOfTheMind.
* The base setting of ''VideoGame/KidChameleon'', where the game boss of a new arcade in town has kidnapped several other players that have played it and it's up to [[HeroProtagonist you]] to enter the game and put an end to it.
* ''VideoGame/AssassinsCreedRevelations:'' After the events of ''[[VideoGame/AssassinsCreedBrotherhood Brotherhood]],'' [[spoiler:Desmond is trapped in the Animus, his mind shattered. He must complete the game's missions to piece his consciousness back together.]]
* In ''VideoGame/{{Catherine}}'', the protagonist has a reoccurring nightmare where he and others must climb a slowly collapsing tower of blocks. Anyone who falls off the tower or is killed by a trap or a falling block [[YourMindMakesItReal dies in the waking world]], and the only way to wake up is to either get to a sanctuary and wait until morning or make it to the very top of the tower.
* The "Tranquility Lane" simulation in ''VideoGame/{{Fallout 3}}''. The only way directly presented to you to exit the scenario is to play along with the Overseer's increasingly evil and sadistic games with the other inhabitants of the simulation, until he's satisfied and lets you leave, but keeps the others around to play with for eternity. [[spoiler:There's another way to exit with good Karma, though, if you hack the simulator from inside and change the scenario to one where [[MercyKill a Chinese invasion kills everybody]].]]


[[folder: Web Original ]]

* ''VideoGame/NeoQuest II'', but the entire game is a simulation of a computer, with bosses being viruses and the like...
* Played with in ''Webcomic/{{Homestuck}}'': At the end of a successful [[TheGamePlaysYou Sburb]] session, the players are allowed exit [[spoiler:into a brand new universe they created during the game.]] However, [[spoiler:the Trolls' exit door was destroyed by the BigBad, trapping them in the game.]]
* {{Subverted|Trope}} in ''Webcomic/LsEmpire''. They thought that beating the game would get Geminiman out, but it didn't. [[TakeAThirdOption So Dimentio just used his dimensional magic to free him off-screen]].
* ''WebVideo/JonTron'' also subverts this in the ''Joe and Mac Retrospective'' video.
-->'''Jacques:''' Jon, how did we escape?
-->'''Jon:''' I just left.
-->'''Jacques:''' That seems too easy...
-->'''Jon:''' I just left.


[[folder: Western Animation ]]

* This was the central idea behind ''WesternAnimation/ReBoot''.
* An episode of ''WesternAnimation/DannyPhantom'' had their goal being to prevent the villain from winning and thereby escaping to the internet; however, they still needed to win several of the levels to catch up with him. Bizarrely, "access to the World Wide Web" ''was the game's reward''.
* In ''WesternAnimation/DarkwingDuck'', the gizmo that turns real objects into video game objects breaks after letting DW and Quackerjack in, so they must beat the game to reach the default "exit door."
* ''WesternAnimation/TheFairlyOddParents'' once did a plot of this sort as a result of one of Timmy's wishes. Bizarrely, he ''specifically asked'' for "a game you can't wish yourself out of," for no apparent reason other than so this trope could happen (the concept of wishing oneself out of a video game being utterly meaningless in any other context). It was perfectly possible to leave the game by, uh, quitting... but none of them actually did this because Timmy couldn't warn the other players and he wouldn't abandon them.
* An episode of ''WesternAnimation/JohnnyTest'' has Johnny, Dukey, and his sisters getting trapped in a ''Franchise/{{Pokemon}}'' {{expy}}, and the only way out was to win a tournament.
* ''WesternAnimation/MyLittlePonyFriendshipIsMagic'': This is how the comic book world works in "Power Ponies".
* One ''WesternAnimation/ScoobyDoo'' movie involved a plot like this, in which the gang had to play through a game and find hidden boxes of Scooby Snacks to clear each level, only being able to leave once they beat the game.
* The ''WesternAnimation/OneHundredAndOneDalmatiansTheSeries'' episode "Virtual Lucky" saw Cruella and the dogs trapped in a video game, with Lucky having to defeat Cruella in every stage before they could escape.

[[folder:Real Life]]
* Corn mazes, hedge mazes, and similar labyrinths typically are difficult to get out of except through finding the proper exits. Some mazes can stretch over [[http://en.wikipedia.org/wiki/Corn_maze entire farm fields and potentially take hours to solve.]]