recently completed A development animation effect of the work, the main need to do object collision effect, so the traditional three animation can not meet our needs (actually this is not an animated effect of the issue, in fact, a little bit of the feeling of the game). Find a particle system and find the jbox2d Relatively simple to meet our needs, can be a good simulation of the real world, of course, jbox2d is the implementation of Java layer, so like a complex collision of the computational efficiency requires a high calculation jbox2d and then I'll look at libgdx this thing, calculation and other work is encapsulated in so use C code to complete, efficiency naturally needless to say, many many many games are using this to do. There are many examples on the Internet, so we can look for them. Now let's take a look (I personally see the UI effect generally like those some, see what effect, and then decide whether to download the source code).
Run the demo video address
Based on Surfaceview package view, improve drawing efficiency, avoid affecting the main thread work, achieve surfaceview transparent, case code Surfaceview below there is a video playing area.
SOURCE Download: Jbox2ddemo
Android jbox2d implementation of particle collision effect instances