Prince of PersiaGuides
Prince of Persia Cheats: Cheat Keys, Level Skip and Debug Keys
The 1989 game shipped with a set of developer keys that anyone can switch on with one word on the command line. This guide lists the ones confirmed by more than one source and says what each does.
How Prince of Persia cheats are switched on, and which keys exist
Prince of Persia cheats are not a menu in the first game, and no code is typed during play. They are developer keys that stay dormant until the program is started with a special word after its name. On a DOS machine or in a DOS emulator that means running the game as prince megahit. The word is documented on the Prince of Persia Unofficial Website, which also suggests putting the command in a small batch file, and the readme of the open-source port SDLPoP lists the same word as the switch that enables cheats.
Once the game is running in this mode, the keys below work at any moment of play. Nothing on screen announces that cheat mode is active, so the quickest test is to press a key with an obvious effect and see whether it responds. A modern port such as SDLPoP takes the same word on its command line, which is why the examples here apply to both the 1990 DOS program and the reimplementation.
Only Prince of Persia cheats confirmed by at least two independent lists are given below. A few other keys appear in a single source each, and they are left out rather than guessed at.
Prince of Persia cheat keys for the DOS original
These are the keys that three separate lists agree on: the unofficial website above, a second cheat compilation, and the SDLPoP readme.
- Shift+L skips to the next level. This is the level skip every player asks about, and it can be repeated.
- The plus and minus keys add or remove one minute from the remaining time. The readme describes it as one minute per press.
- Shift+T gives the prince one more hit point, raising the maximum.
- Shift+S restores a hit point that was lost in a fight or a fall, up to the current maximum.
- R brings the prince back to life at the place where he last died.
- K kills the guard the prince is fighting.
- Shift+W slows falling so that a long drop no longer hurts.
The difference between the two health keys is worth spelling out. Shift+S heals, so a prince who has taken damage returns to full. Shift+T raises the ceiling itself, which is what a hidden potion does in normal play. The first is a repair, and the second is an upgrade.
Viewing and display keys
The remaining confirmed keys change what the player sees, and none of them changes the game state. H, J, U and N show the neighbouring screen to the left, right, above and below, which makes it possible to look at a trap or a drop before reaching it. C shows the number of the current room, and Shift+C shows the neighbouring rooms as well. Shift+I flips the screen upside down. Shift+B hides every object that is not animated, a mode the SDLPoP readme calls blind mode, and pressing it again restores the picture.
The room numbers matter to level editors and to anyone reading a walkthrough that refers to rooms by number. The page about the 1989 original explains how the game is built, and the Apoplexy level editor is the fan tool for changing levels.
The sequel: level skip with Alt+N
The Shadow and the Flame, the 1993 sequel, has its own cheat mode, and it works differently. The program is started with another word, yippeeyahoo, for most copies. The unofficial website and several cheat compilations agree on that word, and they also say that the demo and some special versions of the program expect makinit or sunshine instead. A game started this way can also begin at a chosen level by adding LEVEL and a number from 1 to 14 after the word.
Inside the game, the level skip is Alt+N. Alt+D writes a text dump of the game state to a file, which is a debugging aid rather than a cheat, and Shift+B hides non-animated objects just as in the first game. The sequel’s other keys, such as those for slow motion and a ruler, are described in only one place, and one forum report says that the Alt keys stopped responding past a certain level, so they are not listed. Anyone who wants the level-by-level context for these shortcuts can read the guide to the sequel.
Debug keys in SDLPoP
SDLPoP adds a second layer. Starting it with debug enables what the readme calls debug cheats, on top of the normal set. They are listed as additions that never existed in the original game:
- The left and right square bracket keys move the prince one pixel to the left or right.
- T toggles a timer display.
- F toggles a display of the feather fall time, which needs the quick save fix in feather mode to be switched on.
- Shift+F9 quickloads a save but keeps the level that is currently loaded.
The readme also names three more keys that are marked as not in the original game: Ctrl+B returns to the prince’s room, Shift+F12 saves a screenshot of the whole level map, and Ctrl+Shift+F12 does the same with extras. These are conveniences for people who build or test levels, not cheats in the sense of an advantage.
The same readme describes a setting named use_fixes_and_enhancements. With it set to false, the port behaves like the original program. Cheat mode and debug mode are separate from that setting, so a player can switch either on while keeping the original behaviour. Quicksave sits on F6 and F9 and is described on the port’s page, and it is the nearest thing to a cheat that needs no launch word at all.
A cheat key versus a save or data edit
The two are often confused, and they work in opposite directions. A cheat key is part of the program. The authors put it there, the program reads it while running, and nothing on disk changes: close the game and the next run starts clean. A save or data edit changes a file instead. The edited file is read by the game as if it were genuine, which means the change stays until someone changes it back.
Save files of the original game are written by the game itself, from level 3 onward with Ctrl+G. In SDLPoP, saves and the hall of fame live in the folder of the active mod. Editing the resource containers is a different activity again: the graphics, sounds and level layouts sit in DAT files, and fan tools read and rewrite them. The DAT files page explains those containers. Changing a level layout is level design, not cheating, and it is how the fan-made level sets for the port were made.
For a player the practical consequence is this. Cheat keys are reversible and leave no trace, and they work only in a copy of the game that was started with the launch word. An edited file stays edited, and it can be shared, which is why it is the route modders use and the one that needs care with backups.
When a cheat is not needed
Some of the things players use cheat keys for have a legitimate answer inside the game. Hard levels become manageable with the quicksave of SDLPoP, and the original time limit of sixty minutes is the reason many people reach for the plus key at all. The ways to play Prince of Persia page explains how the port is obtained, and the classic games overview covers both the first game and its sequel for readers who are choosing where to start.
Frequently asked questions
Do the cheat keys work on a console version?
The keys described here belong to the DOS program and to SDLPoP, which is built from a disassembly of the DOS program. The console releases are separate pieces of software by other studios, and none of the sources consulted documents a keyboard cheat mode for them, so nothing is claimed about them.
Does cheat mode change the high score or the hall of fame?
None of the sources consulted says that cheat mode marks a run or blocks a hall of fame entry. What the game does record is the time left when the princess is reached, so adding minutes with the plus key obviously changes that figure. Anyone comparing times with other players should say whether cheats were on.
Can the debug keys be used in the middle of a level?
The SDLPoP readme lists the debug keys as extra cheats that come on with the debug word at launch, in addition to the normal cheat set. They act on the running game like the ordinary cheat keys, so they can be pressed during play. Some of them depend on a fix being enabled, which the readme names.
Why does a key do nothing on my keyboard?
Most of these keys are shifted letters, so Caps Lock or a different keyboard layout can change what the game sees. Cheats also have to be switched on at launch first, otherwise every key is ignored. For the sequel, the launch word differs between program versions, so a word that works for one copy may not work for another.