自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 coco2dx-3.0正式版,示例项目手机运行

1.安装android开发环境嘛,需要工具有  NDK

2014-05-09 11:20:42 856

原创 PhysicsBody 理解

/****************************************************************************  Copyright (c) 2013 Chukong Technologies Inc.    http://www.cocos2d-x.org    Permission is hereby granted, free of ch

2014-04-04 18:21:23 3679

原创 将lua中字符串转换成table,富文本

char* str = ((char*)  tolua_tostring(tolua_S,1,0));   {    lua_newtable(tolua_S);    if (str == NULL) return 1;    int n = 0;    char ch = 0;    char* ptr = str;    while (true)    {     ch =

2014-03-29 00:29:41 5506

原创 lua 和xml交互

lua官方代码。 稍做修改   /** LuaXML License LuaXml is licensed under the terms of the MIT license reproduced below, the same as Lua itself. This means that LuaXml is free software and can be used for bo

2014-03-28 21:45:41 1758

原创 lua 类 面向对象的用法

--[[ 实现类的用法 ]]-- local _class={} function class(super)     local class_type={}     class_type.ctor=false     class_type.super=super     class_type.new=function(...)             local obj={}

2014-03-26 10:06:49 744

原创 quickCocos2dx 中添加自定义类,导出lua

1.在userpath\quick-cocos2d-x\lib\cocos2d-x\external\extra目录下,建立自定义导出类目录。 (我的目录为class) 2.在新建目录中添加自定义导出类,*.h文件和*.cpp文件。   #myMathEx.h文件 #ifndef _GAME_MYMATHEX_H_ #define _GAME_MYMATHEX_H_ class

2014-03-20 11:21:06 1281

转载 quick-x vs2012+ eclipse windows环境下 编译

大多数时间,使用 player 就可以进行游戏开发。仅当我们需要在真机上调试,或者需要在 player 中加入自己的 C++ 代码时,我们才需要配置编译环境。 quick-x-player 使用说明 配置编译环境的基本步骤: 安装 Visual Studio 2012安装 Java SDK安装最新的 Android ADT bundle 和 Android NDK下载 q

2014-03-19 15:52:47 1419 2

原创 C++ 知识点

二、define中的三个特殊符号:#,##,#@   #define Conn(x,y) x##y#define ToChar(x) #@x#define ToString(x) #x (1)x##y表示什么?表示x连接y,举例说: int n = Conn(123,456); /* 结果就是n=123456;*/char* str = Con

2014-03-11 18:03:05 477

原创 常用记录。

CCLayer  默认的描点是(0,0) CCSprite 默认描点是(0.5,0.5)

2014-03-10 17:30:44 392

原创 lua常用函数

NO1.求一个字符串是否是纯数字。 --[[ NO1 @biref:  判断输入字符串是否为纯数字 @parames: str需要检测的字符串 @return: true 纯数字 ]]-- function checkNumber(str)  local ret = true;  local ret1,ret2 = string.find(str,"%a");  if re

2014-03-08 18:27:48 606

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除