问题
I'm in need of particle animation in my UIView
-based 2D game. At present I'm using an array of images for particle animations. This makes my app size increase, and sometimes leads to memory leaks. Is there is any way to make particle animations using Core Animation?
回答1:
cocos2d (see http://cocos2d-iphone.org/) is a framework for developing 2d games for iPhone. The source code for many examples include some particle animation demo's.
回答2:
There are some nice examples how to do this in the Apress book "Advanced iPhone programming". I have no interest in the book (financially) - but they go into this pretty well. You can get a used copy for $20 or so.
回答3:
I would recommend Particle Designer (http://particledesigner.71squared.com/) which has a nice Objective-C sample application if you want to use their PEX files stand-alone OR you can export PLIST files that work in combination with the COCOOS2D framework (http://www.cocos2d.org/).
来源:https://stackoverflow.com/questions/3555161/particle-animation-for-ios