Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am going to use Cocos2d-x to make a game for Android and ios, but my question is, do I use the Lua integration or only c++, I see Lua useful here because the compilation thing.

Or do I use only Lua for the configuration, save data and things in runtime?

I don´t know if using Lua for the whole game is the right thing :/

Can anyone help me with this question and why use it or not?


share|improve this question
This is a "which technology" question (as well as being extremely broad) and is consequently off-topic for this site. See the FAQ for more. – Josh Petrie Jul 12 '12 at 16:12

You would use both. Lua can be used for:

  • Exporting code to a mobile device
  • Making a UI (You should try first make an addon for a MMORPG if you want to get a better idea how you can use Lua)

C++ is the core code of the videogame, so maybe you can program a game without Lua but it might help you to do better UI for your games

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.