Particle animation for iOS

强颜欢笑 提交于 2019-12-23 23:31:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!