开发者

iPhone 4 circle creation on touch

How do you create filled flat circles (say white) that build out from each other in random overlap to fill the iPhone screen but ease-dissolve so that the screen never gets filled - on touch? On touch release they stop being created as they continue to ease transparency to 0 and are cleared from memory.

An ex开发者_运维技巧ample in code would be killer.


What you're doing shouldn't be too hard to do, but it would take some time to actually code. I'd be surprised but impressed if anyone were to make an example for you.

You could probably figure this out for yourself and learn some pretty good coding lessons on the way.

In order to do what you want, you need a pretty good handle on some concepts such as these:

(Cocos2d)

Touch Detection
Drawing Shapes
Random Numbers
Opacity
Timed Fade Animation (Your "Ease-Dissolve")

and utmost important:
**memory management!**
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜