cocos2d-x版本号获取

摘要: iosint CIosDeviceInfo::getGameVersion(char *version){ NSBundle * bundle = [NSBundle mainBundle]; if( nil == bundle ) { return 0; } NSString* a... 阅读全文
posted @ 2014-06-05 17:29 the seal 阅读(878) 评论(0) 推荐(0) 编辑

game《天天乱三国》框架问题

摘要: 背包附加:进入背包麻烦,背包的功能能按照所在页面进行不同的处理。背包独立:进入背包方便,从背包返回麻烦,可简化背包功能(背包只有选择功能)。页面切换:每个场景带私有数据,增加代码编写难度,个人认为com就是太复杂了,规矩太多。页面切换:根据需要一键切换到任何页面的任何位置的需求,页面切换应有同一的接... 阅读全文
posted @ 2014-06-05 13:44 the seal 阅读(122) 评论(0) 推荐(0) 编辑

cocos2d-x添加触摸

摘要: //CCLayer//CCTouchDelegateboolCBattleLayer::init(){ if( ! CCLayer::init() ) { return false; } this->setTouchEnabled( true ); return true;}void... 阅读全文
posted @ 2014-06-05 13:38 the seal 阅读(158) 评论(0) 推荐(0) 编辑

Texture Packer杂项

摘要: Premultply alpha 和 Reduce border artifacts 两个选项。 阅读全文
posted @ 2014-06-05 13:09 the seal 阅读(213) 评论(0) 推荐(0) 编辑

ios内嵌浏览器cookie保存

摘要: //// FMUIWebViewBridge.h// sgcard//// Created by Apple on 13-9-10.////#import #import #import #import "FMLayerWebView.h"@interface FMUIWebViewBridge :... 阅读全文
posted @ 2014-06-05 12:56 the seal 阅读(478) 评论(0) 推荐(0) 编辑

cocos2d-x纹理去色

摘要: //CCSprite转成CCimage CCPoint p = oldSprite->getAnchorPoint(); oldSprite->setAnchorPoint(ccp(0,0)); CCRenderTexture *outTexture = CCRenderTexture::c... 阅读全文
posted @ 2014-06-05 12:52 the seal 阅读(340) 评论(0) 推荐(0) 编辑

安卓开发环境(for mac)搭建记录

摘要: 下载并解压安卓SDK(带Eclipse)和NDK运行Eclipse选择菜单ADT->Preferences->Android->NDK->Browse选择之前解压的NDK目录点击OK右键Package Exploder空白处->Import->Android->Existing Android Co... 阅读全文
posted @ 2014-06-05 12:34 the seal 阅读(299) 评论(0) 推荐(0) 编辑

cocos2d-x杂项

摘要: 创建项目目录:cocos2d-x/tools/project-creator命令:./create_project.py -project path_test -package com.yiwanzu.test -language cpp拷贝:cocos2d-x/tools/lua_project_... 阅读全文
posted @ 2014-06-05 12:31 the seal 阅读(203) 评论(0) 推荐(0) 编辑