https://popuw.com/cheats2.html
https://popuw.com/parameters.html
This isn't a complete list, though. I've going through David's POP2's disassembly to understand the code more and try to slow map more of it and I noticed there's some debug keys I've never seen be mentioned.
Here's a list of cheats/debug commands available when starting the game in cheat mode (with "yippeeyahoo" argument when starting 1.0 or 1.1):
- K = Kill all enemies on screen
- G = Something to do with shadow and changing health value?
- + = Increase time left
- - = Decrease time left
- Shift+B = Only render animated entities
- Shift+I = Flip screen
- Shift+R = Display room number
- Shift+S = Turn into shadow/flame (only works on temple and final levels)
- Shift+K = Subtract health
- Shift+T = Increase max health
- Shift+W = Slow fall
- R = Resurrect player
- V = Sets something referred to as "buffer" to 0?
- Alt+D = Make dump
- F1 = Frame-by-frame mode. Also shows frame index for player as "POS=#" if F2 is toggled
- F2 = I think this draw player's "weight" position (where feet are planted)
- F3 = Shows "Toggle player: On/off." What does this actually do?
- F5 = Draws blue dots below player. Right-most collision position?
- F6 = Toggle ruler (divided into 16 segments that are 20 pixels wide each)
- F7 = Toggle something. What does this do?
- F8 = Toggle something. What does this do?
- 1 = Save player X position (doesn't work for me)
- 2 = Load player X position (doesn't work for me)
- 3 = Save player Y position (doesn't work for me)
- 4 = Load player Y position (doesn't work for me)
- I'm not sure what V does, but I feel it could be something trivial and not important.
- I'm pretty sure the red lines below the player when F2 is on is the "weight" position for the player. If you have F1 and F2 enabled at the same time, you get a value showing the current frame data index for the player character (I've seen some information online claim this is the player's X position, but that's wrong).
- I have no idea what F3 does.
- I don't think F4 is mapped to anything.
- F5 shows blue lines below the player, which I think correspond to the player's rightmost (relative to direction faced) collision box position. I could be wrong, though.
- No idea what F7 and F8 do, but they toggle something in the code.
- 1/2/3/4 are supposed to save and restore player position, but I couldn't get it working.
Speaking of debug commands, this page shows there's a big debug menu in the Mac version of POP2, but unfortunately, it is apparently not functional: https://tcrf.net/Prince_of_Persia_2:_Th ... S_Classic)