You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/manuals/lua.md
+6-15Lines changed: 6 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -10,29 +10,20 @@ The Defold engine has the Lua language embedded for scripting. Lua is a lightwei
10
10
This manual will give a quick introduction to the basics of Lua programming in general and what you need to consider when working with Lua in Defold. If you have some experience with Python, Perl, Ruby, Javascript, or a similar dynamic language you will get going pretty quickly. If you are new to programming you might want to start with a Lua book aimed at beginners. There are plenty to choose from.
11
11
12
12
## Lua versions
13
-
We aim to keep Defold the same across all platforms, but we currently have a few minor discrepancies in the Lua language version between platforms:
[LuaJIT](https://luajit.org/) is a highly optimized version of Lua suitable for use in games and other performance-critical software. It is fully upwards compatible with Lua 5.1 and supports all standard Lua library functions and the full set of Lua/C API functions.
14
+
Defold uses [LuaJIT](https://luajit.org/), a highly optimized version of Lua suitable for use in games and other performance-critical software. It is fully upwards compatible with Lua 5.1 and supports all standard Lua library functions and the full set of Lua/C API functions.
28
15
29
16
LuaJIT also adds several [language extensions](https://luajit.org/extensions.html) and some Lua 5.2 and 5.3 features.
30
17
18
+
We aim to keep Defold the same across all platforms, but we currently have a few minor discrepancies in the Lua language version between platforms:
19
+
* iOS does not allow JIT compilation.
20
+
* Nintendo Switch does not allow JIT compilation.
21
+
* HTML5 uses Lua 5.1.4 instead of LuaJIT.
22
+
31
23
::: important
32
24
To guarantee that your game works across all supported platforms we strongly recommend that you ONLY use language features from Lua 5.1.
33
25
:::
34
26
35
-
36
27
### Standard libraries and extensions
37
28
Defold includes all of the [Lua 5.1 standard libraries](http://www.lua.org/manual/5.1/manual.html#5) as well as a socket and a bit operation library:
0 commit comments