JSNES, an NES emulator in your browser

By Kshitij Sobti | Published on 23 Sep 2009
JSNES, an NES emulator in your browser

Amazon Great Indian Festival sale

Up to 60% off on Electronics and other items.

Click here to know more


There is certainly a great amount of hype surrounding HTML5, and even while the standard itself is years away from completion, some of its juiciest bits have already started leaking into browsers.

Besides the video and audio tags, one of the most prominent component of the HTML5 specification would have to be the canvas tag. This HTML5 element places within your browser a blank area which allows manipulation of its pixels by client-side scripts. Using a canvas in an HTML5 document, Javascrript can draw bitmaps which are rendered on the client side.

To give you a taste of its power, here we have an entire NES emulator written entirely in JavaScript, which renders Nintendo games on a canvas element!

This little emulator allows you to load up a ROM from a list of games, and after a short period of downloading, play it right in your browser; no plugins required.

This is a brilliant look into the shape of the web in the future, where browsers will be able to run complicated applications without the need of any plugins, using just web-standard technologies.

You can look at this development as either a sign of the power of web browsers, or an indication of just how long it's been since the NES came out, that even an inefficient interpreted scripting language like JavaScript can now emulate its working.

This is certainly not the first project to allow you to play NES games right in your browser. The VirtualNES (vNES) website which has been around much longer, allows you to do just that by running an emulator written in Java; it performs and looks much better. JSNES is infact a "port" of vNES in JavaScript. 

Despite the obvious disadvantages of playing a game with clunky controls, at slow speed in a small window, this demonstration is significant, as it demonstrates what the browser is capable of even on its own.

Check out the project in action at http://benfirshman.com/projects/jsnes/

The author of JSNES highly recommends using Chrome, as it runs the code significantly faster.

Kshitij Sobti

Digit caters to the largest community of tech buyers, users and enthusiasts in India. The all new Digit in continues the legacy of Thinkdigit.com as one of the largest portals in India committed to technology users and buyers. Digit is also one of the most trusted names when it comes to technology reviews and buying advice and is home to the Digit Test Lab, India's most proficient center for testing and reviewing technology products.

We are about leadership-the 9.9 kind! Building a leading media company out of India.And,grooming new leaders for this promising industry.

DMCA.com Protection Status