+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Gameboy emulator in Javascript
Pages: [1]
Author Topic: Gameboy emulator in Javascript  (Read 1 times)
hippiejake
Guest
« on: November 05, 2010, 10:49:59 pm »

This guy wrote a Gameboy emulator in Javascript.

This is the most accessible guide to the internals of an emulator I've ever read. I don't know whether it's efficient or complete at all, but it actually makes sense when scanning through the source.

Tetris was pretty buggy for me in Chrome, but it runs.

It's really a testament to how fast modern Javascript engines [and CPUs] are. You would've had a damned hard time running something like this a short while ago.

Edit: Oops, I meant to put this in General Discussion... Move it if you mind, sorry.
Ryusui
Guest
« Reply #1 on: November 05, 2010, 10:52:44 pm »

The blocks were garbage until they hit the ground and I could only get O-tetraminos, but surprisingly, it worked well enough to register a complete line.
Nightcrawler
Guest
« Reply #2 on: November 06, 2010, 09:58:37 am »

The documentation is quite interesting. I like the approach with concept, application, and example code. It would be nice to see more documentation like this for other languages and emulators, but it must have taken quite some time to write up. I don't have much interest in a javascript emulator though. It seems more of a novelty thing rather than practical as it can't compare to the features and flexibility of the standalone emulators.
UglyJoe
Guest
« Reply #3 on: November 06, 2010, 09:59:59 am »

Quote from: hippiejake on November 05, 2010, 10:49:59 pm
It's really a testament to how fast modern Javascript engines [and CPUs] are.

The HTML5 canvas element helps quite a bit too.
tcaudilllg
Guest
« Reply #4 on: November 19, 2010, 12:48:02 am »

Oh some of us can find uses for well documented Game Boy Emulators.... Wink

I also want to noe that Javascript emulators are probably the easiest to improve, given that no compilers are needed; all that is needed to write the code is a text editor; and the tools are free and will assuredly remain so. (you can't say that about the C# and VB-based emulators).
« Last Edit: November 29, 2010, 08:37:40 pm by tcaudilllg »
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC