views:

124

answers:

2

hai i'm in need of particle animation in my uiview based 2D game. At present i'm using the array of images for particle animations this make my app size increase some time leads to memory leak also. Is there is any way to make particle animation using core animation if it give me some sample codes. Thanks in Advance.

+1  A: 

COCOOS2D (see http://www.cocos2d.org/) is a framework for developing 2d games for iPhone. The source code for many examples include some particle animation demo's.

TanvirK
your correct but this is a simple 2d game based on uiview thats why i use the array of images. can you say any some other way for particle animation in uikit.
KingofHeaven
Check out the WW DC 2010 demos on the Apple Dev website - there's a video called 'Session 424 - Core Animation in Practice, Part 1' that shows particle animation using Core Animation (water particles from a fire hydrant towards the end). The sample code for that should be available for download.
TanvirK
A: 

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.

fogelbaby