Version of Lua
Posted: Sat Mar 30, 2013 6:07 am
What version of Lua can be used with Love2d? I'm new to Lua and Love2d so I'm kind of clueless on were to begin . Any extra advise will be greatly appreciated.
Code: Select all
print(_VERSION)
Code: Select all
io.write(_VERSION)
if jit then
io.write(" - ")
if type(jit.version) == "string" then
io.write(jit.version)
else
io.write("LuaJIT")
end
if not #setmetatable({},{__len=function()end}) then
io.write(" with 5.2 compatibility")
end
elseif _VERSION == "Lua 5.2" and loadstring then
io.write(" (5.1 compatibility)")
end
io.write("\n")