troperville

tools

toys


main index

Narrative

Genre

Media

Topical Tropes

Other Categories

TV Tropes Org
random
Useful Notes: Lua
Lua is a scripting language; it is the most commonly used publicly available scripting language in Video Games development. While the Unreal engine's scripting language might be more commonly used, that language is bound to the Unreal engine, while Lua can be used in anything.

Lua is often used in games for many reasons:

  1. Lua is the smallest scripting language available. It has very little overhead, and its standard library is very small and tight.
  2. Lua is the fastest VM-based scripting language, and even faster as LuaJIT.
  3. Lua, as a language, is very flexible and easy to learn.
  4. Lua, unlike many other publicly available scripting languages, is designed to be embedded in an application. Embedded scripting languages offer a degree of developer control that non-embedded languages lack.
  5. On top of being easily embedded, Lua is easily extended, with a simple API used for both that can be used to make Lua interface modules for any C library. (This allows, for instance, an external window using the IUP UI library to control an NES game running in the FCEUX emulator, which has Lua embedded.)
  6. Unlike almost all other open source projects, Lua (and other projects in its culture) has no "copyleft" clause (under the MIT license), meaning that you are free to do whatever you want with derivative works that use it, including selling them without disclosing the source code.

It's important to note that the name of the language is "Lua", not "LUA". It is not an acronym, but rather the Portugese word for "moon", as Lua was developed in Brazil.

Lua is a pretty respectable language by itself. STUART provides standalone Lua scripts for editing TV Tropes.
Scripting LanguageHow Video Game Specs WorkRandom Number Generator
How Video Game Specs WorkUseful NotesMac OS

alternative title(s): Lua
random
TV Tropes by TV Tropes Foundation, LLC is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Permissions beyond the scope of this license may be available from thestaff@tvtropes.org.
Privacy Policy
2411
4