ThisJquery Special EffectsYesHTML5Game, using the 2D Special Effect Engine plug-inBox2dTo achieve collision and superposition of small balls, click the blank position on the page and a few circles will pop up and fall onto the ground to bounce. After the stop, it will be stacked on the original ball until the whole page is full, if you double-click a ball, it will start again. If you click not to place the mouse, the ball will pop up all the time. You can drag a ball and throw it. It will collide with the browser and other balls, just like playing games, you can try it out.
To make everyone see the effect, please use mainstream HTML5-supported browsers, such as Google and Firefox... And so on
The page uses the following code:
<Div id = "canvas"> <script type = "text/javascript" src = "script/protoclass. js "> </script> <script type =" text/javascript "src =" script/box2d. js "> </script> <script type =" text/javascript "src =" script/main. js "> </script> </div>
The effect is as follows:
Source: http://www.jq-school.com/Detail.aspx? Id = 215