Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
JSNES: A JavaScript NES emulator by Ben Firshman (fir.sh)
68 points by inkaudio on Sept 27, 2011 | hide | past | favorite | 16 comments


There's a bunch of java applets that do this (popular hobby project I guess), and one commonality among them always bothered me: Why don't they make the screen bigger? Not that much of a performance hit.


The standard display resolution of the NES is 256 horizontal pixels by 240 vertical pixels. Upscaling on a canvas context can be a very slow operation even if you use the nearest-neighbor approach.


Or you can let the browser do it for you.

<canvas width="256" height="240" style="width:512px;height:480px"></canvas>


Awesome job!

Yeah, name is slightly confusing. Maybe use jsNES?


Yeah, I immediately thought this was related to Jnes...


The source code is well commented


Americans, please stop using X and Z for game controls. On German keyboards, Y and Z are swapped, which makes those games unplayable.


Germans, please stop using non-qwerty keyboards.


This makes no sense for us, because Z (especially "tz") is more common than Y in German language and QWERTY does not come with öäüß :)


The first obvious answer is that software should be configurable to a point where it doesn't matter.

The second obvious answer is for Germans to make a piece of software that requires a qwerzy layout.

The third is to switch your keyboard layout software side...


Seems to work pretty well, but I don't think this is supposed to happen: http://cl.ly/AUil



Incidentally, the theory mentioned on that page that his name is actually "Errol" is nonsense. No Japanese person would write "Errol" as "ERAA." If they did not intend "Error," then it would have to be some fantasy-sounding name like "Erah."


Assuming you're not rehashing one of the oldest jokes in video gaming: Yes, that is supposed to happen. His name really is Error.


can't get the damn contra code to work!


it works, you just gotta be fast

U U D D L R L R B A Select Start




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: