Defold
Cross-platform 2D engine for Game Development
- Lua
- cross-platform including Web and mobile
- Mostly 2D
- built-in editor is terrible
VS Code support via Defold Kit - Visual Studio Marketplace
Defold’s Lua Implementation
To guarantee that your game works across all supported platforms we strongly recommend that you ONLY use language features from Lua 5.1.
| Platform | Lua version | JIT Enabled |
|---|---|---|
| Windows | LuaJIT 2.1.0-beta3 | Yes |
| macOS | LuaJIT 2.1.0-beta3 | Yes |
| Linux | LuaJIT 2.1.0-beta3 | Yes |
| Android | LuaJIT 2.1.0-beta3 | Yes |
| iOS | LuaJIT 2.1.0-beta3 | No* |
| Nintendo Switch | LuaJIT 2.1.0-beta3 | No* |
| HTML5 | Lua 5.1.4 | N/A |
LuaJIT Extensions
| Namespace | Explanation |
|---|---|
bit.* |
Bitwise operations |
ffi.* |
FFI library |
jit.* |
JIT compiler control |
Standard libraries and extensions
Defold includes all of the Lua 5.1 standard libraries as well as a socket and a bit operation library:
- base (assert(), error(), print(), ipairs(), require() etc)
- coroutine
- package
- string
- table
- math
- io
- os
- debug
- socket (from LuaSocket)
- bitop (from BitOp)
All libraries are documented in the reference API documentation.
Bookmarks
- Defold Engine
- Defold manuals and other learning resources
- Unfolding Gamedev - Defold Tutorials
- TactxStudios - Defold Tutorials