Collecting my attempts to improve at tech, art, and life

Defold

Does any of this enlighten, entertain, or otherwise please you? Please consider a Tip. Every little bit helps!

I last updated this page

Defold

Cross-platform 2D engine for Game Development

VS Code support via Defold Kit - Visual Studio Marketplace

Defold’s Lua Implementation

Lua programming in Defold

ℹ️ Official Defold Lua Version Support

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

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:

All libraries are documented in the reference API documentation.

Bookmarks