Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

This question already has an answer here:

I wrote some small games for fun myself, and never used LUA myself. but I can see people discussing lua used in games everywhere.

I don't know what benefit I can get from using LUA in game development can someone explain this a little bit to me ?

share|improve this question
    
Lua is a proper name, not an acronym. It should be in ALL CAPS. –  Nicol Bolas May 26 '13 at 10:08
add comment

marked as duplicate by Nicol Bolas, msell, Josh Petrie, Byte56, Ali.S May 26 '13 at 23:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Lua is a pretty well developed scripting engine that is flexible and easy to integrate to your games, and is already supported in many game engines, for instance:

2D

  • Agen (Lua; Windows)
  • Blitwizard (Lua; Windows, Linux, Mac)
  • Corona (Lua; Windows, Mac; iOS/Android)
  • EGSL (Pascal/Lua; Windows, Linux, Mac, Haiku)
  • Grail Adventure Game Engine (C++/Lua; Windows, Linux, MacOS X (SDL))
  • LÖVE (Lua; Windows, Linux, Mac)
  • MOAI (C++/Lua; Windows, Linux, Mac; iOS, Android; Google Chrome (Native Client))

2.5D

3D

Source: http://stackoverflow.com/questions/5053134/what-is-a-good-game-engine-that-uses-lua

And as MJP says from gamedev.net:

Using a scripting language was/is very popular for games for a few reasons:

  1. Most scripting languages are much more high-level than C++ (which just about all commercial games use), and can be used much more readily by gameplay or level designers.

  2. The portions of a game written in scripting languages can be modified while the game is running, without having to restart or recompile. This is important if the people working on the scripted portions don't have access to the compilation tools, or if compilation takes a long time.

  3. C++ has no built-in reflection capabilities.

Source: http://www.gamedev.net/topic/520284-why-use-luascripting/

share|improve this answer
add comment

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