Hi All,
Can anyone direct me to a tutorial that explains how lua scripting can be used in cocos2dx C++ ?
Thanks
Hi All,
Can anyone direct me to a tutorial that explains how lua scripting can be used in cocos2dx C++ ?
Thanks
is there anyone out there to help !!!
At current time, The related Lua documentations are at the http://www.cocos2d-x.org/wiki/Lua_Binding,and the usage of Lua bindings are among the ‘Module’ pages of ‘cocos2d-x’,eg:
http://www.cocos2d-x.org/wiki/Actions.
You also refer to the lua-tests to learn more.
I checked these links already. It didn’t help me much. Anyway i try lua-tests. By the way all i need is how to load a lua script in C++, to handle game specific behaviours. If possible paste down a sample code, that would he highly helpful.
Thanks
I think you can use executeScriptFile and executeString of LuaEngine to execute a lua script.
thank you i will play around this and come back in case of any doubt.