I am working on a simple stack for a game where players move numbered pieces around to keep track of how close they are to finishing collecting a winning hand of pieces.
Currently I went with jQuery UI's draggable and droppable. It is good for starting easily but pieces can be moved only one piece at a time: http://cssdeck.com/labs/cowmmudd/4.
canvas
but I want to achieve te same as Google once did: http://mrdoob.com/projects/chromeexperiments/google-gravity/)Can someone provide a minimalistic example of controlling placement and collisions of normal, not-in-canvas HTML elements using the best JavaScript physics library they know of?
The simplest example I have found so far: http://bl.ocks.org/3411189
Update: A simple adaptation to my pieces: http://cssdeck.com/labs/fe3z2cfx/6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With