Prince Of Persia Opening Screen

Prince of Persia - HTML5
by Aditya Ravi Shankar

This is a recreation of the original Prince of Persia entirely in HTML5 and Javascript.

This project is meant as a tribute to the original game by Jordan Mechner, which was my first introduction to computers.

Prince of Persia was the reason I got fascinated with computers and game programming more than 15 years ago.

The Making of Prince of Persia

With its fluid and lifelike animation using rotoscoping, intelligent puzzles, and challenging game play, Prince of Persia was a masterpiece.

If you are interested in the history of the game, Jordan Mechner has shared his experiences while making the original game in his book The Making of Prince of Persia.

This project is still a work in progress. So far I have implemented movement (running, walking, jumping, running jump and running turn.

I have also managed to recreate the levels/and rooms to match the original game. Until I finish cleaning up the code, there is only one room here.

Feedback and comments appreciated.

You can also check out some of my other HTML5 games (including Command & Conquer - HTML5) and my game programming articles on my website.

If you liked this project, please show your support by donating using the button below.

Your donations help me pay for better web hosting, and for Redbull to keep me going.

Your browser does not support the HTML5 Canvas feature. This game uses new HTML5 features and will only work on the latest versions of Firefox, Safari or Chrome (and maybe Internet Explorer).

If you liked this demo, please share this page with all of your friends using the buttons below.


  • Beta test new missions, features and game updates long before anyone else.
  • Get Exclusive Access to ALL of my upcoming game releases, like Commandos - Behind Enemy Lines
  • Get a chance to give feedback and work with me on future game projects.
  • All of this is TOTALLY FREE.

* indicates required
Which of these do you want to do?
Pro HTML5 Games is out in stores!!!

Interested in learning how to write your own Box2D Physics game or RTS game in HTML5? Check out my book Pro HTML5 Games.

Pro HTML5 Games - Aditya Ravi Shankar

Pro HTML5 Games takes readers through the process of building two complete games in HTML5 entirely from scratch.

You will learn how to build a Box2D Engine based physics puzzle game just like Angry Birds.

You will also learn how to build an RTS game just like C&C - HTML5 with both a single player campaign as well as multiplayer mode.

If you are just starting out with HTML5 programming and want to learn to make amazing looking games using HTML5, then Pro HTML5 Games is the book for you.

Find Out More About Pro HTML5 Games