Hey! We highly recommend you launch this experiment in Google Chrome. It may run slower, or not at all, in other browsers.
Air hockey game demo in WebGL using three.js
Way too fast exception ;)
Constantly running at 346 FPS. And it is too fast to be playable.
@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.
This is a good demonstration with solid mechanics, thanks for sharing!
The 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.
What'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.
awesome dude ^_^