Labyrinth

The labyrinth or glitched Coliseum is an area within Olympus Coliseum's Keyhole that appears in Kingdom Hearts coded. It initially contains five floors known as "layers" however completing these unlocks fifteen layers that can be completed to unlock a further thirty layers. The labyrinth's gameplay transforms regular combat into a turn-based battle system.

Kingdom Hearts coded
After discovering that Olympus Coliseum is infested with bugs and Hercules hasn't returned from destroying them, Data-Sora promptly finds and enters the world's Keyhole to reach the labyrinth. After finding several "shreds of wisdom", Data-Sora finds Hercules and the two team up. Later, they battle Cloud, who was tricked into attacking Hercules by Hades. After losing the battle, Data-Sora and Hercules forgive Cloud for his mistake and offer to join forces but to no avail. In a state of shame and humility, Cloud denies and decides to go his own way. Deeper into the labyrinth, Data-Sora and Hercules find Cloud struggling against a horde of Heartless and insist on helping despite Cloud's protests and reluctance. Eventually, the Heartless are overcome and the three agree to journey together.

If the player avoids Cloud, Data-Sora and Hercules can continue on without helping and joining him.

The three soon defeat Cerberus, a henchman of Hades and the supposed source of the world's bugs. Enraged, Hades fights the party himself, only to come out as the loser. Data-Sora then realises that Cerberus wasn't causing the bugs, meaning the party had to venture even deeper into the labyrinth. During their travels, the party destroy the Behemoth and Rock Titan, which were also wrongly believed to be causing the world's bugs. Once they get to the end, the trio encounter the Ice Titan and defeat it to discover that it was the source of the world's bugs. Finally successful, Data-Sora and Hercules report to Philoctetes while Cloud leaves to go his own separate way.

If the player is only doing five layers, Cerberus is found to still be the source of the world's bugs and the party return to Phil after battling Hades. If the player is doing fifteen layers, the Rock Titan is the bug source and the party return after defeating it.

Kingdom Hearts Re:coded
A layer contains several rooms and a warp point, which allows Data-Sora to continue to the next layer, that is hidden under Bug Blox in a certain room. Each room is effected by the Bug Level, which shows the amount of bugs in the room and that determines the strength of enemies in the room. At the end of each layer, a score is given, based on the amount of score prizes obtained. Bonus points can be obtained by completely eliminating bugs from as many rooms as possible. Save rooms, which contain a Moogle and a Save Point, can be found between certain layers.

Enemies appear in each room and battles begin if Data-Sora encounters an enemy, either by attacking an enemy or by an enemy attacking Data-Sora. Battles take place in places away from the field, similar to gameplay in Kingdom Hearts Chain of Memories. If Data-Sora encounters an enemy from the back, he will trigger a preemptive attack, giving him an extra turn at the beginning of the battle. However if an enemy encounters Data-Sora from the back, Data-Sora will be caught in a back attack, giving the enemy an extra turn at the beginning of the battle. Menaces, which are swirling pools of shadows, contain powerful enemies that pursue Data-Sora even if he goes to another room.

While in the labyrinth, most abilities and the Loot Cheat are disabled. Combat is entirely turn-based, meaning that Data-Sora and his party will strike, then the enemy; only when everyone has attacked, Data-Sora will attack again. Data-Sora can perform a regular attack by pressing, without selecting any commands. Regular attacks can be strung into combos, with a maximum of three hits, by pressing just before striking the enemy. Combos may trigger a special attack, which are much stronger, advanced attacks. Each character has their own, unique special attack. Blocking, which reduces damage taken by half, can be achieved by pressing just before an enemy attack connects. When having teammates, such as Hercules and Cloud, combat is exactly the same however if Data-Sora's HP falls to 0, it becomes Game Over. Holding down the R button, allows the party to attempt to escape the battle.

Compiled Commands
Deck commands are can be compiled to become new commands. Compiling more than one command can result in stronger, higher leveled compiled commands.

Licenses
Items, called licenses, can be obtained by defeating enemies. They grant several different abilities and effects.