Recently completed a development of animation effects work. The effect, so the traditional three animation can not meet our needs (in fact, this is not an animated effect of the issue.) In fact there is a little bit of game feeling).
Looking for a particle system, it is found that jbox2d is more simple to meet our needs, can be very good simulation of the real world. Of course jbox2d is the implementation of Java layer, so like complex collisions, such as the computational efficiency requirements very high calculation jbox2d, after I will study Libgdx This east, the calculation and other work is encapsulated in so with C code finished. Efficiency naturally needless to say. Very many, many, many games are made with this. Online is also a lot of examples, we can go to look for.
Now let's see (I personally see the UI effect generally like those some, see what effect, and then decide whether to download to see the source code).
Execute Demo Video Address
Based on Surfaceview package view. Improve drawing efficiency, avoid affecting main thread work, realize surfaceview transparency. The case code Surfaceview the following another video play area.
Source code Download: Jbox2ddemo
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
Android jbox2d An instance of a particle collision to achieve a special effect