3DS Browser opens up homebrew

Nintendo launched the 3DS browser earlier this week, and having had a play with it made a nice little discovery.

Although limited, I believe it opens up *just* enough functionality to allow homebrew apps & basic games to be conjured up with JavaScript.

To demo it, I’ve thrown together a basic demo which you can find at http://3ds.andysmith.co.uk/jFox.html – it’s not much to look at or do, but hopefully gives you a little hands-on & some basic souce code to pull apart. Thanks to ‘zigcee’ for the arwing sprite. Just move around with the d-pad, and hit [a] to shoot. I’ve kept jQuery out of it and made the source all pretty explicit so you can grab what you need.

Based on NetFront, the ported browser maps the [left], [up], [right] and [down] keys to ascii codes 37, 38, 39 & 40 respectively, and maps the [a] button to code 13 – the equivalent of [return] on a normal keyboard.

By using these and cancelling the event (for safety) we can control our JavaScript game. I reckon a d-pad is enough. After all, if you map [up] to ‘jump’ you’ve got everything you need for a basic Mario clone.

Quick tests also show some basic HTML5 canvas support which will be fun if it turns out to be useful.

The next step is obviously to test out how it handles touch events (if at all) and see if we can get around the one-screen restriction (easy to draw on the top screen, just need to prevent the default scroll action on [up] and [down]).

So go, play, invent! Let me know if you find anything else interesting and I’ll post it up here.

4 Responses to “3DS Browser opens up homebrew”

  1. Homebrew games unlocked on Nintendo 3DS | webdesigner-sa Says:

    [...] games unlocked on Nintendo 3DS Posted on June 10, 2011 by admin A coder has discovered that Nintendo’s launch of a browser for the 3DS allows basic homebrew apps and games to be [...]

  2. Homebrew games unlocked on Nintendo 3DS | Give News Says:

    [...] coder has discovered that Nintendo’s launch of a browser for a 3DS allows facile homebrew apps as good as games [...]

  3. Homebrew games unlocked on Nintendo 3DS | Nintendo 3ds Games Console And Accessories Says:

    [...] coder has discovered that Nintendo’s launch of a browser for the 3DS allows basic homebrew apps and games to be [...]

  4. Dan2552 Says:

    Am I right in thinking with a little hacked up HTTP server you could remote control your pc and use your 3DS as a remote game controller? it’d be a matter of taking the javascript input and doing a keypress on the host

Leave a Reply

You must be logged in to post a comment.