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.
Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
101–110 of 129 posts
Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#102Dell Mini 9 running Crunch Bang 9.10 (Ubuntu respin) with Opera 10.60.
Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#103For 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.
#104This is depressing. It's 2010, and our computers have issues rendering Pong .
Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#105Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#106Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#107Interesting 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.
Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#108Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#109Earlier 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! :)
Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
#110The 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.