Utilises tolua++ to create the lua bindings to expose cocos2d-x functionality to lua m_uID : -1; int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL; tolua_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret]]> getTiles();]]> getTiles();]]> #include #include "LuaCocos2d.h" #include "tolua_fix.h" #include "cocos2d.h" //#include "CCRibbon.h" #include "SimpleAudioEngine.h" using namespace cocos2d; using namespace CocosDenshion; ]]>