Live data from Hacker News

Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

labs.codecomputerlove.com

101–110 of 129 posts

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#101
post #95
post #59

Gah. People please stop using Z as the default key for down (or whatever). If you can't detect my keyboard layout use keys that are the same on every keyboard, no matter the language, or provide an option to configure the keys. My Z (on a Slovenian keyboard) is where your Y is (on your English keyboard). This makes the game unplayable for me, since my "down" key is above my "up" key, which makes it almost impossible…

There are no keys that will work for everyone. I use Colemak -- the A and Z keys are in the same spot as Qwerty, but K is where N is on Qwerty, so that's a difference. Throw in Dvorak, and you only have A and M in the same place on those three. A "right" answer is to make the keys remappable.

Arrow keys work for (almost) everyone.

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#103
Both sides seem about the same to me but I also have the Flash 64-bit player for OS X http://labs.adobe.com/downloads/flashplayer10.html.

For those interested in Flash game optimization here's a video on porting Plants vs Zombies to Flash http://tv.adobe.com/watch/max-2010-develop/building-plants-v... (that would be and interesting split screen!).

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#107
post #12

Interesting problem of tuning both sides speed. Here (small Atom netbook hooked to big screen) the ball moves noticeably faster on the Flash side. To the point of making me lose a Pong match with myself.

Core i7 920 on Chrome 9 (canary). Both sides are equally fast, but there's a visible stutter when the ball's moving quickly.

Oh man, Chrome shipped 8 versions already? They've achieved version-number-parity with IE! :)

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#109

Earlier quoted context omitted.

Core i7 920 on Chrome 9 (canary). Both sides are equally fast, but there's a visible stutter when the ball's moving quickly.

Oh man, Chrome shipped 8 versions already? They've achieved version-number-parity with IE! :)

No, stable is still version 7.

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#110
post #42
post #38

The Flash side was unexpectedly slow, and comments on this same article on Reddit indicate that it is because they are doing a lot of JavaScript-to-Flash communication, which is unusual for a game, as well as enabling "wmode=transparent", which allows DOM elements to be positioned on top of Flash content, slows down Flash content, and is apparently unnecessary for this page.

HTML5 does all of that out of the box without any flags, so it's a fair comparison.

You can set the moz-opaque boolean attribute on canvii in Firefox to disable it.
Post reply on HN