WebGL Air Hockey Demo
December 07, 2011
Launch Experiment
Not working? This is a WebGL experiment, so try running it with Google Chrome.
Hey! We highly recommend you launch this experiment in Google Chrome. It may run slower, or not at all, in other browsers.
Okay, I'll download Google Chrome I'm willing to risk it
Comments
Way too fast exception ;)
Reply to this commentConstantly running at 346 FPS. And it is too fast to be playable.
Reply to this commentSweet
Reply to this comment@Jason The game pauses for a second after scoring and then the puck moves according to the current position of the mouse on the 'onmousemove' event. This behavior can be better understood using when the cursor is visible. Try this one http://rinesh.in/lab/airhockey/ with a visible mouse cursor. Do tell me what you think about this.
Reply to this commentThis is a good demonstration with solid mechanics, thanks for sharing!
Reply to this commentThe position variables don't reset when a new game begins, so whenever a game ends and a new one begins, the instant the mouse moves the game piece moves to wherever it was last located, taking into account the small movement that just occurred. Let me know if you're looking for a better explanation of this problem.
Reply to this commentWhat's happened to it on Samsung Chromebook? There are dots all over the place and most parts of the scenery are colourless. I suppose it's a problem with Chrome OS or the hardware.
Reply to this commentawesome dude ^_^
Reply to this comment