在cocos2dx 自带的hello.lua脚本中添加:
cocos2d.ccDrawLine(createPoint(10, 10),createPoint(100, 100))
未能绘制线条,ccDrawLine本身无法返回对象或者类型,如果不用lua脚本必须使用draw重载实现,
LuaCocos2d.cpp 中:
tolua_function(tolua_S,“ccDrawLine”,tolua_Cocos2d_cocos2d_ccDrawLine00);
该函数在跟踪过程里也有走到,但无效。