Original Prince of Persia game source code released

The game that launched a multi-billion dollar franchise is now laid bare for your hacking pleasure. [Jordan Mechner] just posted the once-lost source code for Prince of Persia. This game was ground-breaking for its use of rotoscoping to mimic the movements of an actor (in this case it was his younger brother). Oh, and it’s a ton of fun to play.

This comes at an appropriate time since yesterday was the the 35th anniversary of the Apple II release. PoP was written for that platform but should be easy to get running on an emulator if you’re just interested in cloning the repository so that you can play it through once again. Interestingly enough, the source code went missing for many years. [Jordan's] been looking for the original source code for a decade. Turns out his Dad came across a cardboard box with some original copies of the game in it and shipped it off for [Jordan] to take care of. Inside was a set of 3.5″ disks that are pure retro gold.

So here’s your chance to inject yourself into the game. The question is, will you be the Prince or will you be Jaffar?

Comments

  1. Get my hopes up will you? Screenshot is for the DOS version, not Apple. I’d actually be excited if it was the PC code that was released. :(

  2. Drake says:

    New Mod PoP: Prince of Portals

  3. BLuRry says:

    For historical reasons, it’s worth noting this is the ORIGINAL game. The PC port is, though improved, still a port. In addition to preserving an awesome historical relic, we also get to see something that we never would have seen 35 years ago: The source code to the disk copy protection routines.

    Also, for kicks look at the end of the Boot0 source and you can find where the bootloader easter eggs are defined.

  4. austinmarton says:

    This is the best thing to happen today.

  5. dimitri schreiber says:

    My dad is friends with the person who coded it.

  6. andar_b says:

    Now if only they’d find the source for Origin’s “Ultima VIII:2 The Lost Vale.” :) Rumor has it the game was almost ready for pressing, but was killed days before it was due to be finished.

  7. BLuRry says:

    In spirit of this site’s name: I have used the source code to hack the game. The next version of JACE will feature game cheat support, the first of such features will be a trainer for PoP. So far I have concocted cheats for:

    Infinite Life (obligatory, will crash game if you get impaled on spikes though)
    Infinite Time (stops clock)
    Sleepy Time (Enemies don’t react to the Prince and you can walk right past them!)
    Feather Fall (no fatal falls)

    Other cheats are possible, but man it feels good to finally add cheats to JACE. Code will be checked in the next few days but it will be longer before the binary gets updated.

  8. Jonathan Wilson says:

    Nice to see this release, hopefully all the bits required to compile this into a working binary will be made available (for example will the data files for the levels and for the graphics be published?)

  9. steve says:

    Somebody should think about some kind of museum or archive for these things. This is history!

  10. Miroslav says:

    Linus Torvalds played this game while waiting for his Minix discs to arrive by mail :) (before coding Linux kernel 0.01).

  11. ferdinand says:

    i remember this game good. a play it years back on my first pc whit a monogrome schreen the one that is orange/yello. te probleem i had that you do not see or you get a good potion an not one that kill me.

  12. CG says:

    This should really piss off the guy who ported the game to the C64 just recently, with only the help of Jordan’s journals and a disassembly of the original game. http://popc64.blogspot.com/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96,425 other followers