Difference between revisions of "Lua"

From Mario Fan Games Galaxy Wiki
Line 8: Line 8:
 
*[[COSINE]]
 
*[[COSINE]]
 
*[[Tile Lattice]]
 
*[[Tile Lattice]]
 +
*[[MechaSource|MechaSource Games]]
  
 
== Advantages ==
 
== Advantages ==

Revision as of 14:06, 15 April 2009

Lua
Lua.gif
Basics
Intermediate
Advanced
XLua
Add to this template
 Standardwikimessagebox.png This article assumes the use of Lua 5.1.

Information may not be accurate or may need revision if you are using a different version.

Lua is a kind of scripting language known as an extension language. Though standalone programs can be coded entirely in Lua, it is intended to be used as a way for users of a program to easily add functionality through scripts. Two Lua extensions exist for MMF2, and a few users of said program use it as a way of working around MMF's lack of a scripting language. A Lua script can also run faster than an equivalent script made through MMF's event editor, especially if using Lua+'s MMF interface functions. Retriever II has used the language extensively by submitting howtos, creating an NCFC booth about Lua, and coding the Tile Lattice level editor.

MFGG projects that use or may use Lua:

Advantages

  • Generally much faster than MMF alone
  • Less hassle involved in changing code
  • Opens up the possibility for moddable games

Disadvantages

  • Lua+ has only limited integration through the MMF interface (but more features can be added on request)
  • Moddable games usually require an entire runtime engine to be written
  • Occasionally has ambiguous error messages, making debugging difficult
  • Both Lua extensions are quite unstable

External Links