Defold icon

Defold

Standard softwareFOSS · Defold License

Ultra-compact Lua 2D and 3D engine for web, mobile, Steam

Free ($0 / 0% royalty) · Defold Foundation · Standard software workflow; Steam AI disclosure does not apply.

AI
Standard
IP
Commercial-Safe IP
Engines
Defold, Web / JS
Platforms
Windows · macOS · Linux · Web · CLI
Version
1.9.6
Technical Summary

Defold is a source-available, zero-royalty 2D and lightweight 3D game engine governed by the Defold Foundation. Combining Lua gameplay scripting, message-passing components, and C++ native extensions, it compiles ~2 MB WebAssembly/HTML5, iOS, Android, Steam desktop, and console binaries at $0 cost across Windows, macOS, and Linux.

Technical Overview

Architecture and Production Workflow

Originally engineered inside King before transitioning to the independent Defold Foundation, Defold prioritizes deterministic memory footprints, battery efficiency, and tiny binary sizes. Projects assemble Game Objects out of static Collections and lightweight Components (Sprites, Tilemaps, Spine rigs, ParticleFX, Labels, and 3D Meshes) rather than deep dynamic inheritance hierarchies. Gameplay scripts execute on LuaJIT 2.1 on desktop/Android/iOS (falling back to standard Lua 5.1 on HTML5 and consoles where JIT compilation is restricted) and communicate via asynchronous msg.post() URL addressing to avoid tight coupling.

Defold's cloud or local Java-based build tool (bob.jar) strips unused engine subsystems (such as 3D physics, sound decoders, or profiling hooks) via custom .appmanifest files, routinely producing compressed WebAssembly/HTML5 bundles under 2 MB that boot near-instantly on web portals like Poki and CrazyGames. Rendering supports Vulkan, Metal, OpenGL, and WebGL2 with custom GLSL/SPIR-V vertex and fragment materials plus render scripts that give full control over render targets and post-processing passes. When Lua needs native speed or platform SDKs, the C/C++/Objective-C/Java Native Extension system compiles custom C++ modules on Defold's zero-setup cloud build servers.

Pricing, Licensing, and Commercial Rights

Defold is completely free ($0 upfront, $0 per seat, 0% revenue royalties) under the source-available Defold License. Unlike strict GPL or copyleft engines, studios can ship closed-source commercial games across Steam, iOS, Android, HTML5, Nintendo Switch, PlayStation 4, PlayStation 5, and Xbox at zero licensing cost; Defold provides its private console SDK branches free of charge to any developer who holds verified platform-holder devkit credentials. The only restriction in the Defold License prevents third parties from selling the engine itself as a competing commercial game engine product.

Strengths and Tradeoffs in Studio Pipelines

Pipeline DimensionProduction StrengthPractical Limitation
Binary Size & Boot Speed~1.5-2 MB gzipped WASM builds; top-tier retention on web and emerging mobile marketsMessage-passing URL strings and fixed object pools feel rigid to OOP developers
Console & Commercial CostFree Switch, PlayStation, and Xbox engine access with 0% royalties3D pipeline lacks built-in PBR global illumination, terrain sculpting, and navmeshes
Ecosystem ExtensionsOfficial maintained Spine, Rive, Box2D, Steamworks, and Nakama librariesSmaller asset-store tutorial ecosystem than Unity or Godot

Choose Defold when shipping high-frame-rate 2D mobile, web-portal HTML5, or cross-platform Steam/Switch puzzle, card, and action games where download size and zero royalties directly protect studio margins.

AI Transparency & Steam Disclosure

Standard Software

Procedural math, physics, or manual authoring software.

Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.

Technical FAQ about Defold

Is the Defold License truly free for commercial Steam, mobile, and console games?
Yes. The Defold Foundation charges $0 for editor seats, cloud native-extension builds, and console targets (Nintendo Switch, PS4, PS5, Xbox), with 0% revenue royalties. You only need standard platform-holder developer approval from Nintendo, Sony, or Microsoft to access Defold's private console repositories.
Can you write Defold games in TypeScript or Haxe instead of plain Lua?
Yes. Because Defold consumes standard `.script` and `.lua` modules, studios wanting static typing frequently use `ts-defold` (TypeScriptToLua) or `hxdefold` (Haxe), which transpile strongly typed TypeScript or Haxe directly into clean, zero-overhead Lua files inside the Defold project tree.
How small are Defold HTML5 WebAssembly builds compared to Godot or Unity?
A stripped Defold 2D HTML5 WebAssembly runtime starts around 1.2 MB to 2 MB gzipped before game art, whereas Unity WebGL and Godot 4 WASM exports typically start between 8 MB and 25 MB compressed. That difference substantially reduces player drop-off on mobile browsers and instant-play portals.

More tools like Defold