News for hackers. Stuff that matters.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by Twisol on Monday June 27, 2011 @05:56AM (#2700762)
If your keyboard is like mine, and it doesn't like pressing Enter + Shift + Z + X (which is how you go to the save screen here), you can simulate the key combination with this quick hack:

    function simuSave() {
      gameboy.JoyPadEvent(4, true);gameboy.JoyPadEvent(5, true);gameboy.JoyPadEvent(6, true);gameboy.JoyPadEvent(7, true);
      setTimeout(function() {
        gameboy.JoyPadEvent(4, false);gameboy.JoyPadEvent(5, false);gameboy.JoyPadEvent(6, false);gameboy.JoyPadEvent(7, false);
      }, 20);
    }
Put that in Chrome's devtools or Firebug's console and call it with simuSave(). YMMV.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by Klonoar on Monday June 27, 2011 @01:26AM (#2700256)
This runs... incredibly well. Nothing short of impressed.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by henrikschroder on Monday June 27, 2011 @07:08AM (#2700892)
Using only ~20% of my quad-core CPU to emulate a game that was made for the 8-bit 8MHz Gameboy color...
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by palish on Monday June 27, 2011 @02:47AM (#2700408)
Actually, it runs at ~10fps on my Dell E1705.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by grantg on Monday June 27, 2011 @02:50AM (#2700416)
Use Firefox 5, other browsers take a shit on putImageData performance when blitting to the canvas.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by grantg on Monday June 27, 2011 @01:51AM (#2700318)
Thanks
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by ramidarigaz on Monday June 27, 2011 @02:12AM (#2700359)
Strange thing just happened when I fired this up. I was playing some other music, and it suddenly sounded like I was blowing out my speakers. I wasn't playing the music very loud, but the bass became extremely scratchy. As soon as I closed the tab, it cleared up. (Win 7 Chrome 12.0.742.100)
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by grantg on Monday June 27, 2011 @02:19AM (#2700368)
You see, the problem is that chrome has bugs. Try running it in Firefox 5 for windows. It's not my fault. period. See some comments in http://www.reddit.com/r/gaming/comments/i9s9h/legend_of_zeld... for other various chrome related issues.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by ramidarigaz on Monday June 27, 2011 @01:10PM (#2702043)
Oh! I didn't mean to blame you! I'm well aware of Chrome's various issues, but this one was new to me.

I didn't mean to detract from an awesome project!

Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by Animus7 on Monday June 27, 2011 @05:27AM (#2700697)
I see. Chrome has bugs, but thank heavens because Firefox 5 for Windows (no less) doesn't.

I think I speak on behalf of all of us when I say thank you for enlightening us!

Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by minikomi on Monday June 27, 2011 @06:31AM (#2700827)
Unfortunately can't get this old chestnut to work with it.. otherwise great!! http://www.youtube.com/watch?v=cWdxSz65iXc
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by MaxGabriel on Monday June 27, 2011 @04:02AM (#2700551)
Very cool. It works for me in chrome, but its shows this message four times before working In windowStack::windowStack() : The DOM element passed was invalid.

It doesn't work for me in Firefox 5, but I don't have flash on my ff. Do I need that?

edit: more detail: On firefox, its sometimes a black screen, and sometimes a blue/green wavy screen.

Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by grantg on Monday June 27, 2011 @04:16AM (#2700574)
I bet the resource files are 503'ing from server overload. :/
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by pspeter3 on Monday June 27, 2011 @01:31AM (#2700266)
This incredibly awesome! I hope it doesn't get taken down soon
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by just_testing on Monday June 27, 2011 @02:09AM (#2700350)
Truly amazing. Congrats!
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by avree on Monday June 27, 2011 @03:05AM (#2700437)
Gives me an "Aw, Snap!" Chrome crash on 14.0.797.0 on Lion.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by grantg on Monday June 27, 2011 @03:13AM (#2700448)
Use Firefox 5 then. Problem solved?
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by jalada on Monday June 27, 2011 @05:00AM (#2700648)
Look, the page itself doesn't have a 'Works best in Firefox 5'. There's no need to be so blunt/rude when people mention it doesn't work in other browsers. I'm sure they're not trying to insult your (awesome :) ) work.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by grantg on Monday June 27, 2011 @01:33PM (#2702138)
Because these are OS-dependent bugs for certain browsers and should get fixed soon by the browser makers. :P
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by cantbecool on Monday June 27, 2011 @01:46AM (#2700304)
Wow, lots of nostalgia with this one. I love the disproportionate hitbox of Links Sword and the sound of the Owl's 8-bit hoot.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by jalada on Monday June 27, 2011 @05:01AM (#2700650)
Cheaper than £4.40 on the 3DS E-shop.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by ralfd on Monday June 27, 2011 @05:37AM (#2700713)
Two seconds per frame on iPad 1. And two times crashing mobile Safari at the intro. ^^
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by Arxiss on Monday June 27, 2011 @06:42AM (#2700841)
WoW. Cant believe you can play emu games in browser... So in html6 i will be able to play World of Warcraft 2 or Crysis 3 with DX13 support. I love this world.
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by drivebyacct2 on Monday June 27, 2011 @01:33AM (#2700270)
Isn't this just the javascript gameboy emulator that has been posted here before?

Or maybe it's a different one: https://github.com/grantgalitz/GameBoy-Online

Gr, this link was hard to find, my Google-fu was weak. Previous discussion: http://news.ycombinator.com/item?id=2266701

Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by grantg on Monday June 27, 2011 @01:51AM (#2700319)
Yup
Re:Legend Of Zelda - Link's Awakening, now playable in HTML5 by machinshin2011 on Monday June 27, 2011 @06:32AM (#2700830)
My god this thing is loud. Also, at least on OSX, there is no way to lower the volume/mute that tab, individually(or even all of Firefox?!, which is insane, even Windows has the built-in). Can you add some kind of volume control? Or at least a mute button :)