Difference between revisions of "Lua"
(Cleaning / clarifying) |
|||
Line 1: | Line 1: | ||
{{Lua}} | {{Lua}} | ||
− | '''Lua''' is | + | '''Lua''', named after the Portuguese for the moon, is an extremely rapid and modular scripting language based heavily on [[Scheme]] and designed to be embedded into software development environments. It has full support for anonymous [[function]]s, [[Lua: Coroutines|coroutines]] and first-class functions. There are several [[extension]]s for [[Multimedia Fusion 2]] that allow integration of Lua, such as [[Retriever II]]'s [[XLua]]. |
− | Lua is | + | Lua's primary data structure is the [[Lua: Tables|table]], and includes various data formats. It is generally used whenever custom data objects are created, and as such is extremely common in any advanced Lua code. |
− | Lua is | + | Lua itself is minimalist and does not directly feature many of the powers inherent in languages such as C, but these features may be implemented or emulated through the use of [[Lua: Metamethods|metamethod]]s. |
− | Lua | + | Lua supports C libraries (ie. *.dll files) when properly compiled to provide further functionality, as well as the <tt>[[Lua: Userdata|userdata]]</tt> type, which may be manipulated both in C and Lua. |
− | + | Lua is currently in version {{Lua Version}}. | |
− | MFGG projects | + | '' '' |
− | *[[Pocket Mario]] | + | == See also == |
− | + | * Various MFGG community projects utilizing Lua: | |
− | *[[MPUZ]] | + | **[[Pocket Mario]], a [[fangame]] developed by [[Klobber]] and [[Retriever II]] |
− | *[[COSINE]] | + | **[[MPUZ]], a [[fangame]] developed by [[Xgoff]] |
− | *[[Tile Lattice]] | + | **[[COSINE]], a [[Multimedia Fusion 2]] multi-purpose game engine by [[Xgoff]] |
− | *[[MechaSource]] | + | **[[Tile Lattice]], a [[Multimedia Fusion 2]] level editor by [[Retriever II]] |
+ | **Games by [[MechaSource]] | ||
+ | '' '' | ||
== External Links == | == External Links == | ||
− | *[http://en.wikipedia.org/wiki/Lua_(programming_language) Wikipedia | + | *[http://en.wikipedia.org/wiki/Lua_(programming_language) Wikipedia's article] |
*[http://www.lua.org/manual/5.1/manual.html#2 Official Manual] | *[http://www.lua.org/manual/5.1/manual.html#2 Official Manual] | ||
− | *[http://www.lua.org/demo.html Online | + | *[http://www.lua.org/demo.html Online demo of Lua5.1.exe] |
− | *[http://www.lua-users.org | + | *[http://www.lua-users.org Various tutorials, information, sample code] |
[[Category:Languages]] | [[Category:Languages]] |
Revision as of 00:56, 6 October 2009
Lua |
---|
Basics |
Intermediate |
Advanced |
|
XLua |
Add to this template |
Lua, named after the Portuguese for the moon, is an extremely rapid and modular scripting language based heavily on Scheme and designed to be embedded into software development environments. It has full support for anonymous functions, coroutines and first-class functions. There are several extensions for Multimedia Fusion 2 that allow integration of Lua, such as Retriever II's XLua.
Lua's primary data structure is the table, and includes various data formats. It is generally used whenever custom data objects are created, and as such is extremely common in any advanced Lua code.
Lua itself is minimalist and does not directly feature many of the powers inherent in languages such as C, but these features may be implemented or emulated through the use of metamethods.
Lua supports C libraries (ie. *.dll files) when properly compiled to provide further functionality, as well as the userdata type, which may be manipulated both in C and Lua.
Lua is currently in version 5.1.4.
See also
- Various MFGG community projects utilizing Lua:
- Pocket Mario, a fangame developed by Klobber and Retriever II
- MPUZ, a fangame developed by Xgoff
- COSINE, a Multimedia Fusion 2 multi-purpose game engine by Xgoff
- Tile Lattice, a Multimedia Fusion 2 level editor by Retriever II
- Games by MechaSource