【发布时间】:2012-11-19 16:47:52
【问题描述】:
我想了解 CCAnimationCache 的用法。
我有一个敌人对象的缓存。每个对象都有两个 CCAnimations 成员变量,一个标准动画和一个特殊动画。动画中的帧根据敌人对象的类型属性而有所不同。
@interface EnemyEntity : Entity
{
EnemyTypes type;
CCAnimation * animation;
CCAnimationCache * animationCache;
}
通常情况下,在屏幕上我确实有几个相同类型敌人的实例,我想知道是否应该使用 CCAnimationCache 而不是 CCAnimation 成员变量。
如果是这样,我应该把 CCAnimationCache 实例放在哪里?
【问题讨论】:
标签: animation cocos2d-iphone memcached