随笔分类 -  Cocos2d-x

摘要:今天看到个问题,编辑工程提示Unknown type name 'NSString',如下图解决方案三:将Compile Sources As 改为 Objective-C++ 阅读全文
posted @ 2015-01-20 14:49 LeeHonGee 阅读(4713) 评论(0) 推荐(0) 编辑
摘要:最近使用wxsqlite加密sqlite3数据库,刚开始折腾好几天,在xcode上一直编译不通过,后来在sqlite3.c找到配置,编译顺利通过,太激动了,哈哈,废话少说!总结一下android和ios平台。wxsqlite3wxSqlite3作为wxWidgets的扩展组件用C++语法对Sqlit... 阅读全文
posted @ 2014-11-13 13:06 LeeHonGee 阅读(5337) 评论(1) 推荐(1) 编辑
摘要://// Connection.h// XXDemo//// Created by LeeHonGee on 14-9-4.////#ifndef __XXDemo__Connection__#define __XXDemo__Connection__#include #include "co... 阅读全文
posted @ 2014-10-20 18:30 LeeHonGee 阅读(7277) 评论(0) 推荐(0) 编辑
摘要:1.纹理控制。Sprite *pSprite = Sprite::create("background.png");TexParams params = {GL_NEAREST,GL_NEAREST,GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE};pSprite->getTe... 阅读全文
posted @ 2014-07-22 23:40 LeeHonGee 阅读(4532) 评论(0) 推荐(1) 编辑
摘要:在做数据转换时,最好包含以下头文件#include #include#include#includeUSING_NS_CC;using namespacestd;在cocos2d-x中,也有一个格式刷:CCString(数据转换常常找她做中间人),那么我们要转换类型,可先将起始数据类型刷成CCString然后再转成目的数据类型,这个方法比较方便且实用。//int 转 CCstringint num=5; CCString* ns=CCString::createWithFormat("%d",num); //CCstring 转 intint px = ns->int 阅读全文
posted @ 2014-04-03 10:11 LeeHonGee 阅读(21618) 评论(0) 推荐(0) 编辑
摘要:/** @brief 画圆角矩形 * @param origin 矩形开始点* @param destination 矩形结束点* @param radius 圆角半径* @param segments 圆角等份数,等份越多,圆角越平滑* @param bFill 是否填充* @param color 填充颜色* @attention */void DrawPri... 阅读全文
posted @ 2014-04-02 07:14 LeeHonGee 阅读(6918) 评论(0) 推荐(1) 编辑
摘要:一、在Windows环境下安装二、在Mac环境下安装首先,安装brew工具,参照官方网:http://brew.sh/index_zh-cn.htmlCocos2d-x3.0需要安装NDK,SDK,ANT所以输入命令安装:antbrew install ant 阅读全文
posted @ 2014-03-28 10:23 LeeHonGee 阅读(319) 评论(0) 推荐(0) 编辑
摘要:Version:0.9 StartHTML:-1 EndHTML:-1 StartFragment:00000099 EndFragment:000039881.Mac配置环境变量,即编辑命令: open -e .bash_profile2.添加export COCOS2DX_ROOT=/opt/cocos2d-2.0-x-2.0.3export ANDROID_SDK_ROOT=/opt/android-sdk-macosxexport ANDROID_NDK_ROOT=/opt/android-ndk-r8bexport NDK_ROOT=/opt/android-ndk-r8bexpor 阅读全文
posted @ 2013-09-16 10:19 LeeHonGee 阅读(643) 评论(0) 推荐(0) 编辑
摘要:1.到Cocos2d-x官方网下载最新版,解压后在目录cocos2d-x-2.1.5\tools\project-creator\create_project.py2.安装Python,到网站http://www.python.org/getit/下载 Python2.7.5版本,并安装到默认路径C:\Python27;安装好后配置环境变量Path,指定默认C:\Python273.将脚本放置到Cocos2d-x-2.1.5文件目录下例如:python create._project.py -project HelloWorld -package com.cocos2d-x.org -lang 阅读全文
posted @ 2013-09-09 09:58 LeeHonGee 阅读(917) 评论(0) 推荐(0) 编辑
摘要:卸载:将隐藏的模板文件删除掉首先打开你mac终端,然后输入如下命令:显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false或者显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles YES隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleS 阅读全文
posted @ 2013-09-08 10:18 LeeHonGee 阅读(956) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示