文章分类 - cocos2d
摘要://// cocos2d Hello World example// http://www.cocos2d-iphone.org//// Import the interfaces#import "HelloWorldScene.h"// HelloWorld implementation@implementation HelloWorld@synthesize tileMap = _tileMap;@synthesize background = _background;@synthesize player = _player;+(id) scene{// 'sc
阅读全文
摘要:2011-11-21 11:32 6707人阅读 评论(0) 收藏 举报layer游戏http://blog.csdn.net/jiarusun000/article/details/6995857有点:CCSpriteBatchNode 中的所有CCSprite只会被渲染1次,因此可以提高游戏的FPS。限制:加入到 CCSpriteBatchNode 中的CCSprite必须使用同一张纹理图。问:什么时候应该用CCSpriteBatchNode?答:比如游戏中的子弹 就很适合用它,因为子弹都是一个样子。答:通过TexturePacker生成的纹理图也适合使用它。看一个简单的Demo:[jav
阅读全文
摘要:http://www.cnblogs.com/andyque/archive/2012/03/18/2390111.html
阅读全文

浙公网安备 33010602011771号