iOS的粒子动画 [英] Particle animation for iOS

查看:98
本文介绍了iOS的粒子动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在基于 UIView 的2D游戏中,我需要粒子动画。目前,我正在将一系列图像用于粒子动画。这会使我的应用程序大小增加,有时会导致内存泄漏。有没有办法使用Core Animation制作粒子动画?

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?

推荐答案

cocos2d(请参阅 http://cocos2d-iphone.org/ )是为iPhone开发2D游戏的框架。许多示例的源代码都包含一些粒子动画演示。

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.

这篇关于iOS的粒子动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆