AfterDawn: Tech news

Prince of Persia ported to JavaScript, runs in browser

Written by Petteri Pyyny @ 29 Dec 2021 6:05

Iconic platformer Prince of Persia now runs in JavaScript, in your browser

Back in 1989, the world of platformer games was pushed to new level. Genre, dominated by Nintendo's cute-sy platformer characters was overtaken by first-ever cinematic platform adventure, Prince of Persia.
Originally released for Apple II, but later ported to most of the available gaming / computing platforms of that era (including Commodore Amiga and Atari ST), the game became a commercial success - and an icon of its kind.

In Prince of Persia, you control the protagonist in order to save the princess who has been captured by the evil Grand Vizier Jaffar. Set in medieval Persia, the game resembles 1980s adventure movies in many ways.

Now, a Spanish developer ultrabolido has taken the 1990 MS-DOS port of the game and further ported it to... your browser!

Using purely HTML5 and JavaScript, the game is true to its MS-DOS port, using the same graphics and same music as the 31-year-old MS-DOS version.

Here's a reminder of how the game's Amiga port looked like:





Game can be played at PrinceJS.com. It doesn't work very well for mobile phones, as the controls are the same as they were back in the day: you use cursor keys to guide the protagonist through the dangers of medieval Persia. But for any modern browser and a computer can run the game smoothly.

Obviously, the game's source code has been released, too and is available at GitHub.

Previous Next  
Comments have been disabled for this article.

Latest news

Windows 11 26H2 released - Start menu changes, improved search, Task Manager changes, .. Windows 11 26H2 released - Start menu changes, improved search, Task Manager changes, .. (30 Sep 2026 12:48)
Microsoft released Windows 11 version 26H2, bringing light updates and deeper AI integration. This update is the first more lightly installing annual Windows update.
Meta VR Glasses revealed - very light, tons of 3D content coming up Meta VR Glasses revealed - very light, tons of 3D content coming up (24 Sep 2026 3:23)
Meta introduced new pair of VR glasses that combine entertainment, work, and AI. According to Meta, lightweight glasses offer an unobtrusive virtual reality experience with cutting-edge technology and an intuitive user interface.
Samsung smart refrigerators received a software update - stopped working, food spoiled Samsung smart refrigerators received a software update - stopped working, food spoiled (24 Sep 2026 3:17)
According to Korean media sources, a software update for Samsung's smart refrigerators has failed miserably. After the update, the refrigerators stopped working completely, and several consumers report that their food has spoiled.
1 user comment
Now sharing links to Facebook costs money Now sharing links to Facebook costs money (22 Sep 2026 5:57)
Meta has started restricting the sharing of external links on Facebook pages, moving a feature that has been completely free and self-evident until now behind an expensive paywall.
Winamp makes a comeback - combines streaming and MP3 player Winamp makes a comeback - combines streaming and MP3 player (20 Sep 2026 3:37)
Winamp returns to the market in 2027 as a streaming service. The new version combines a traditional MP3 player and modern streaming services. Deezer will provide the streaming for Winamp through a partnership.

News archive