摘要: 在新版本的cocos2d中ARCH_OPTIMAL_PARTICLE_SYSTEM已经被移除由CCParticleSystemQuad取代CCParticleSystem *test = [ARCH_OPTIMAL_PARTICLE_SYSTEM particleWithFile:@"test.plist"];应该改为CCParticleSystem *test=[CCParticleSystemQuad particleWithFile:@"test.plist"]; 阅读全文
posted @ 2013-07-12 12:07 OpenSoucre 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 当将大量精灵加载到CCLayer时,如果直接利用[self addChild:sprite]去加载,每加载一个精灵,都必须open,draw,close,而利用CCSpriteBatchNode去加载时只有一次open,draw,close,减少了精灵open,close的时间,但CCSpriteBatchNode有缺点精灵都存放在集合中,那么这个集合CCSpriteBatchNode中的节点(精灵)都将在同一个z轴上,同一深度上 阅读全文
posted @ 2013-07-12 11:42 OpenSoucre 阅读(189) 评论(0) 推荐(0) 编辑