包剪锤游戏,C和Lua的对决! 主要为了练习C和Lua的相互调用。
分类:
其他好文 时间:
2014-05-09 08:26:52
阅读次数:
401
0.使用方法拿CCParticleExplosion举例。//创建CCParticleExplosion特效
CCParticleSystem*p1=CCParticleExplosion::create();
//设置特效贴图
p1->setTexture(CCTextureCache::sharedTextureCache()->addImage("cocos2dx.png"));
//设置自动释放
p1->setAutoRemoveOnF..
分类:
其他好文 时间:
2014-05-09 07:05:56
阅读次数:
288
转自http://my.oschina.net/mayqlzu/blog/113528问题:最近lua很火,因为《愤怒的小鸟》使用了lua,ios上有lua解释器?它是怎么嵌入大ios中的呢?lua的官网说:"lua
is an embeddable scripting language",怎么理解...
分类:
其他好文 时间:
2014-05-09 05:32:57
阅读次数:
264
function myfunction(msg) print("this is msg fun "
.. msg);endlocal fun =_G["myfunction"];if fun then fun("is ok");end
分类:
其他好文 时间:
2014-05-09 04:18:05
阅读次数:
1155
首先是头文件
部分代码是借鉴加修改 大部分是自己写的。
class HelloWorld : public cocos2d::CCLayer
{
public:
virtual bool init();
static cocos2d::CCScene* scene();
void menuCloseCallback(CCObject* pSender);
...
分类:
其他好文 时间:
2014-05-09 01:00:56
阅读次数:
321
参考文档:http://blog.csdn.net/xiaodan007/article/details/7096718function sz_T2S(_t)
local szRet = "{" function doT2S(_i, _v) if "number" == t...
分类:
其他好文 时间:
2014-05-08 22:47:29
阅读次数:
347
鉴于诺基亚(微软移动这个没人用的手机)开发者比较少,cocos2dx移植方面更是少的问题,总结一下WP8移植方面的资料,希望对大家有用,自己也当作笔记留念。1、WP8方面有两种方式创建项目,HelloCpp和TestCpp就是这样,XAML方式和纯c++方式。最好选择xaml方式,因为你有可能会c+...
cocos2d-x101次相遇/目录1安装和环境搭建-xcode2Scenes,Director,Layers,Sprites3建立图片菜单4在HelloWorld上--建立新场景5增加一个精灵sprite5.1缩小sprite并使之完整显示6action,移动sprite73.0的点击事件,CCTouchDelegate已经停用了8使用触摸事件移动精灵cocos2d-x3..
分类:
其他好文 时间:
2014-05-08 16:49:40
阅读次数:
265
cocos2d-x101次相遇/目录1安装和环境搭建-xcode2Scenes,Director,Layers,Sprites3建立图片菜单4在HelloWorld上--建立新场景5增加一个精灵sprite5.1缩小sprite并使之完整显示6action,移动sprite73.0的点击事件,CCTouchDelegate已经停用了8使用触摸事件移动精灵移动一个sp..
分类:
移动开发 时间:
2014-05-08 16:41:42
阅读次数:
369
在lua中创建一个Actor对象function Actor.new() local temp
= {} setmetatable(temp, Actor) temp.x = 10 temp.y = 20 return tempendobj =
Actor.new()那么obj.x = 1...
分类:
其他好文 时间:
2014-05-08 15:04:41
阅读次数:
348