This is not really a game...more like a physics engine of sorts. Not exactly just a demo, since there are unnecessary controls at the bottom that I added just for fun. It's more like just a toy. The hit detection is a little glitchy, and there is one error that may pop up once in a while that has to do with drawing lines outside of the frame of the game, but besides a ball flying off in a weird direction every now and then the collisions are fairly realistic.
This was created in AS3 and takes place on a single frame.
NOTE: Drawing lines faster will make thicker lines. Thin lines tend to be the most glitchy with the hit detection.