摘要:
在lua官网下载lua安装包并安装: http://www.lua.org/download.html 解压编译: 阅读全文
摘要:
最近luajit发布了64位beta版,由于appstore上线必须是64位的应用,而且我的游戏项目用到lua脚本,所以必须要用到64位的luajit来编译lua脚本。 方法如下: 在luajit官网下载luajit源码: http://luajit.org 解压后,需要通过在luajit的文件夹上 阅读全文
摘要:
在cocos中偶尔会遇到闪退的问题,特别是android和ios系统下的闪退就特别难处理了, 虽然说能使用xcode和eclipse显示log,但是也会出现一些特别的情况,直接闪退而且 没有任何预兆。 检测闪退原因的方法可以有以下几种: 1、最简单的方法就是逐部分代码注释,缩小问题代码范围,逐渐找出 阅读全文
摘要:
在CentOS中使用yum install git安装的git是1.7版本的,所以需要更新1.9以及更高版本的git。 安装方法如下: 1、安装依赖的包: yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-d 阅读全文
摘要:
使用linux的wget下载时候会出现网站没有证书警告的问题, 例如下载git时,可以使用wget https://github.com/git/git/archive/v2.3.0.zip --no-check-certificate 去掉证书验证 阅读全文
摘要:
Linux: 安装 [root @ localhost ~]# yum install mysql-server 设定为开机自动启动 [root @ localhost ~]# chkconfig mysqld on 启动mysql服务 [root @ localhost ~]# /etc/init 阅读全文
摘要:
腾讯信鸽是用来在后台推送消息给移动应用客户端使用,接入方法很简单,在信鸽官网注册个账号 http://xg.qq.com/xg,然后注册一个应用,在后台页面获得ACCESS ID, ACCESS KEY 根据sdk提供方法接入。 注意一点,cocos使用命令控制台编译打包跟eclipse有点坑的地方 阅读全文
摘要:
在cocos2dx框架中,有继承好的luaj文件来方便我们去使用lua调用java底层代码,注意:luaj只能使用在安卓平台下,如果在平台下使用,会出错, 所以使用前需要加平台判断,方法 如下: local luaj = require("src/cocos/cocos2d/luaj")--引入lu 阅读全文
摘要:
#include "stdio.h" #include "stdlib.h" #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <dirent.h> bool copyFile(const std::st 阅读全文
摘要:
linux、unix平台 #include "stdio.h" #include "stdlib.h" #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <dirent.h> void createPat 阅读全文