![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Cocos2dx学习
Koalaly
这个作者很懒,什么都没留下…
展开
-
cocos2dx 2
在cocos2dx上添加UIViewControllerxxxViewController *vController = [[[xxxViewControlleralloc] initWithNibName:@"xxxViewController"bundle:nil]autorelease];UIApplication* clientApp = [UIApplication原创 2012-11-27 15:25:55 · 543 阅读 · 0 评论 -
cocos2dx相关box2d
分享http://www.box2d.org/manual.html#_Toc258082967转载 2012-11-27 17:15:15 · 329 阅读 · 0 评论 -
cocos2d-x与ISO内存管理
本文为转载内容,地址http://www.cnblogs.com/w121640121/archive/2012/04/23/2467257.html一,IOS与图片内存在IOS上,图片会被自动缩放到2的N次方大小。比如一张1024*1025的图片,占用的内存与一张1024*2048的图片是一致的。图片占用内存大小的计算的公式是;长*宽*4。这样一张512*512 占用的内存就是转载 2012-11-30 12:54:20 · 356 阅读 · 0 评论 -
cocos2d-x:内存管理
注:原文转载地址:http://4137613.blog.51cto.com/4127613/784134一、概述cocos2d-x最初移植自cocos2d的objective C版本。因此,在内存管理上,使用了和NSObject类似的引用计数器方法,相关接口放置在CCObject类中。二、引用计数器——手动管理内存CCObject的及其子类的对象在转载 2012-11-30 18:54:41 · 377 阅读 · 0 评论 -
cocos2dx
cocos2d-x里节点默认的锚点是中心点,即等同于setArchorPoint(ccp(0.5, 0.5));其中(0,0)代表左下角,(1,1)代表右上角。左上角(0,1),右上角(1,0)原创 2012-11-21 12:28:08 · 524 阅读 · 0 评论 -
ios开发点滴
// Override to allow orientations other than the default portrait orientation.// This method is deprecated on ios6- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface原创 2012-12-27 12:04:46 · 360 阅读 · 0 评论 -
cocos2dx-无限循环动作
CCSprite* levelIcon = CCSprite::createWithSpriteFrameName("xxxx.png"); levelIcon->setPosition(ccp(200, 150) ); this->addChild(levelIcon,4); CCMoveBy *move = CCMoveBy::create(1.2f,ccp(0转载 2012-12-19 10:52:35 · 3719 阅读 · 0 评论 -
cocos2dx-fadeIn
CCSprite* secondSprite = CCSprite::create("rainbow.png"); secondSprite->setAnchorPoint(ccp(0,0)); // secondSprite->setScale(0.5f); secondSprite->setPosition(CCPoint(3原创 2013-01-09 15:12:08 · 1438 阅读 · 1 评论 -
cocos2dx学习---修改文件夹读取权限
sudo chmod -R 777 你的文件夹名称原创 2013-12-17 11:58:38 · 1447 阅读 · 0 评论