目前还不太熟悉,所以记下来备忘,除了Lua自己的io、math、table等模块,可以看到cocos2d-x往Lua环境里面插了好多东西,把大部分常量定义都删掉,只保留驼峰式的变量命名,大概是这个样子,可以看到常用的cc、ccs、ccui等全局变量就在里面:
cocos2d: [LUA-print] ActionManager cocos2d: [LUA-print] ActionObject cocos2d: [LUA-print] DeprecatedClass cocos2d: [LUA-print] GUIReader cocos2d: [LUA-print] LoadingBarTypeLeft cocos2d: [LUA-print] LuaObjcBridge cocos2d: [LUA-print] SceneReader cocos2d: [LUA-print] ScriptHandlerMgr cocos2d: [LUA-print] SimpleAudioEngine cocos2d: [LUA-print] XMLHttpRequest cocos2d: [LUA-print] _G cocos2d: [LUA-print] _VERSION cocos2d: [LUA-print] __G__TRACKBACK__ cocos2d: [LUA-print] __onParseConfig cocos2d: [LUA-print] arr cocos2d: [LUA-print] assert cocos2d: [LUA-print] bit cocos2d: [LUA-print] cc cocos2d: [LUA-print] cc.EGLView cocos2d: [LUA-print] cc.EGLViewProtocol cocos2d: [LUA-print] ccAnimationFrameData cocos2d: [LUA-print] ccColor3B cocos2d: [LUA-print] ccColor4B cocos2d: [LUA-print] ccColor4F cocos2d: [LUA-print] ccDrawCardinalSpline cocos2d: [LUA-print] ccDrawCatmullRom cocos2d: [LUA-print] ccDrawCircle cocos2d: [LUA-print] ccDrawColor4B cocos2d: [LUA-print] ccDrawColor4F cocos2d: [LUA-print] ccDrawCubicBezier cocos2d: [LUA-print] ccDrawLine cocos2d: [LUA-print] ccDrawPoint cocos2d: [LUA-print] ccDrawQuadBezier cocos2d: [LUA-print] ccDrawRect cocos2d: [LUA-print] ccDrawSolidCircle cocos2d: [LUA-print] ccDrawSolidRect cocos2d: [LUA-print] ccPointSize cocos2d: [LUA-print] ccPointSprite cocos2d: [LUA-print] ccQuad2 cocos2d: [LUA-print] ccQuad3 cocos2d: [LUA-print] ccT2F_Quad cocos2d: [LUA-print] ccTex2F cocos2d: [LUA-print] ccV2F_C4B_T2F cocos2d: [LUA-print] ccV2F_C4B_T2F_Quad cocos2d: [LUA-print] ccV2F_C4F_T2F cocos2d: [LUA-print] ccV2F_C4F_T2F_Quad cocos2d: [LUA-print] ccV3F_C4B_T2F cocos2d: [LUA-print] ccV3F_C4B_T2F_Quad cocos2d: [LUA-print] ccVertex2F cocos2d: [LUA-print] ccVertex3F cocos2d: [LUA-print] ccc3 cocos2d: [LUA-print] ccc4 cocos2d: [LUA-print] ccc4BFromccc4F cocos2d: [LUA-print] ccc4FEqual cocos2d: [LUA-print] ccc4FFromccc3B cocos2d: [LUA-print] ccc4FFromccc4B cocos2d: [LUA-print] ccc4f cocos2d: [LUA-print] ccp cocos2d: [LUA-print] ccpAdd cocos2d: [LUA-print] ccpAngle cocos2d: [LUA-print] ccpAngleSigned cocos2d: [LUA-print] ccpClamp cocos2d: [LUA-print] ccpCompMult cocos2d: [LUA-print] ccpCross cocos2d: [LUA-print] ccpDistance cocos2d: [LUA-print] ccpDistanceSQ cocos2d: [LUA-print] ccpDot cocos2d: [LUA-print] ccpForAngle cocos2d: [LUA-print] ccpFromSize cocos2d: [LUA-print] ccpFuzzyEqual cocos2d: [LUA-print] ccpIntersectPoint cocos2d: [LUA-print] ccpLength cocos2d: [LUA-print] ccpLengthSQ cocos2d: [LUA-print] ccpLerp cocos2d: [LUA-print] ccpLineIntersect cocos2d: [LUA-print] ccpMidpoint cocos2d: [LUA-print] ccpMult cocos2d: [LUA-print] ccpNeg cocos2d: [LUA-print] ccpNormalize cocos2d: [LUA-print] ccpPerp cocos2d: [LUA-print] ccpProject cocos2d: [LUA-print] ccpRPerp cocos2d: [LUA-print] ccpRotate cocos2d: [LUA-print] ccpRotateByAngle cocos2d: [LUA-print] ccpSegmentIntersect cocos2d: [LUA-print] ccpSub cocos2d: [LUA-print] ccpToAngle cocos2d: [LUA-print] ccpunrotate cocos2d: [LUA-print] ccs cocos2d: [LUA-print] ccui cocos2d: [LUA-print] class cocos2d: [LUA-print] clone cocos2d: [LUA-print] collectgarbage cocos2d: [LUA-print] coroutine cocos2d: [LUA-print] debug cocos2d: [LUA-print] dofile cocos2d: [LUA-print] error cocos2d: [LUA-print] gcinfo cocos2d: [LUA-print] getfenv cocos2d: [LUA-print] getMetatable cocos2d: [LUA-print] gl cocos2d: [LUA-print] io cocos2d: [LUA-print] ipairs cocos2d: [LUA-print] jit cocos2d: [LUA-print] json cocos2d: [LUA-print] load cocos2d: [LUA-print] loadfile cocos2d: [LUA-print] loadstring cocos2d: [LUA-print] ltn12 cocos2d: [LUA-print] math cocos2d: [LUA-print] mime cocos2d: [LUA-print] module cocos2d: [LUA-print] newproxy cocos2d: [LUA-print] next cocos2d: [LUA-print] os cocos2d: [LUA-print] package cocos2d: [LUA-print] pairs cocos2d: [LUA-print] pcall cocos2d: [LUA-print] performWithDelay cocos2d: [LUA-print] print cocos2d: [LUA-print] rawequal cocos2d: [LUA-print] rawget cocos2d: [LUA-print] rawset cocos2d: [LUA-print] require cocos2d: [LUA-print] schedule cocos2d: [LUA-print] select cocos2d: [LUA-print] setfenv cocos2d: [LUA-print] setMetatable cocos2d: [LUA-print] socket cocos2d: [LUA-print] sp cocos2d: [LUA-print] string cocos2d: [LUA-print] table cocos2d: [LUA-print] tex2 cocos2d: [LUA-print] tolua cocos2d: [LUA-print] tonumber cocos2d: [LUA-print] tostring cocos2d: [LUA-print] type cocos2d: [LUA-print] unpack cocos2d: [LUA-print] vertex2 cocos2d: [LUA-print] vertex3 cocos2d: [LUA-print] xpcall原文链接:/cocos2dx/345102.html