11 ms·
Gameboy Color Emulator: A brilliant use of HTML5
One of the most brilliant uses of HTML5 I've ever seen. The technique he used to build this is beyond my comprehension at this point, but I'd certainly love to dive into his code (which is available publicly on Github) and figure it all out!
- rsanchez1 14y agoMust be that time of the month to post this page from grantgalitz.org.
- Aloush89 14y agoHow does one teach himself to write such a thing?
- modarts 14y agoThis makes for a good start: http://imrannazar.com/GameBoy-Emulation-in-JavaScript:-The-CPU http://imrannazar.com/GameBoy-Emulation-in-JavaScript:-The-C...
- pmarin 14y agoHow To Write a Computer Emulator: http://fms.komkon.org/EMUL8/HOWTO.html http://fms.komkon.org/EMUL8/HOWTO.html Study of the techniques for emulation programming: http://www.scribd.com/doc/94546/Study-of-the-techniques-for-emulation-programming-by-Victor-Moya-del-Barrio http://www.scribd.com/doc/94546/Study-of-the-techniques-for-...
- DiabloD3 14y agoThis is the third time this has been featured on the front page of HN. Not that I'm complaining, its a neat pile of Javascript.
- grantgegalitz 14y agoYeah seriously, there has to be other js projects... :P
- mbel 14y agoHas anyone suceeded in running it in any browser on any smartphone? It seems to fail on Windows Phone's IE. However, it works perfectly in few desktop browsers (including IE9), I've tried. Anyway it seemes, that gameboy game format could be used as some kind of lightweight format for cross-platform browser games. It could enable publishing small browser games without giving away js sources or using third-party plug-ins.
- pilif 14y agoWorks fine (not at full frame rate, but playable) on an iPad 3. No sound of course. The Audio APIs still aren't just there yet for dynamically generated audio.
- lbo 14y agoSame with the iPhone 4s, though it tried to download the .js file first and didn't start working until I hit back. Load time was also much longer on the iPhone 4 over the same connection. Low framerate is hard to play through :/
- city41 14y agoWorks fine on an iPad 1 as well. Although I'm sure much slower.
- _frog 14y agoRelated, GBA.js is a project a friend of mine has been working on to make a GameBoy Advance emulator in pure Javascript. A WIP version is running at http://endrift.com/gbajs/index.html http://endrift.com/gbajs/index.html but there's a lot of bugs and compatibility is far from perfect. Source code is all on GitHub at https://github.com/jpfau/gbajs/ https://github.com/jpfau/gbajs/
- grantgegalitz 14y agoahahahaha, I'm working on my own GBA emulator in JS too. It seems I might have started a trend, since I've been working on https://github.com/grantgalitz/IodineGBA https://github.com/grantgalitz/IodineGBA for a bit now.
- duqee 14y agoReally cool, but on other Gameboy emulators I have used including the visual boy advanced, Z=A and X=B this is the other way around for any reason?
- jasonkostempski 14y agoBecause on the physical Gameboy the B is on the left and A is on the right but then again the DPad is on the left and the buttons are on the right and I use my thumbs instead of fingers so I'm not sure copying the physical layout for just this one particular thing improves the experience any.
- Keyframe 14y agoI'm not that familiar with html5/js, but I am curious if it is viable to develop games for it old-school. What I mean by that is having a framebuffer and direct per pixel control. Is this what people do?
- TazeTSchnitzel 14y agoCanvas w/ ImageData lets you do exact pixel control, and with requestAnimationFrame you can time animations best for the system.
- Keyframe 14y agoThanks! But do people use that for web game development at all?
- TazeTSchnitzel 14y agoI've certainly used it myself (for loading levels - bitmaps are great for level designing), dunno about performance with direct pixel access. It may be higher or lower.
- SoapSeller 14y agoPrevious posts: http://news.ycombinator.com/item?id=3969394 http://news.ycombinator.com/item?id=3969394 http://news.ycombinator.com/item?id=3446871 http://news.ycombinator.com/item?id=3446871 http://news.ycombinator.com/item?id=2266701 http://news.ycombinator.com/item?id=2266701
- pimentel 14y agoAren't game ROMs illegal to distribute? How legal is this?
- BaconJuice 14y agoI don't think it is legal?
- TazeTSchnitzel 14y agoDefinitely illegal, I'm sure he'll get a C&D eventually.
- makmanalp 14y agoMy friend wrote jsGB over 2 years ago, you might find that interesting too: https://github.com/Two9A/jsGB https://github.com/Two9A/jsGB Maybe needs a canvas update :)
- huhhhuhh 14y agoStarted to download this. It appears to be malware infected.
- grantgegalitz 14y agoThere is nothing to download.... It's just a webpage...
- snowman41 14y agoWebpages are files too...