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 Dimension | Production Strength | Practical Limitation |
|---|---|---|
| Binary Size & Boot Speed | ~1.5-2 MB gzipped WASM builds; top-tier retention on web and emerging mobile markets | Message-passing URL strings and fixed object pools feel rigid to OOP developers |
| Console & Commercial Cost | Free Switch, PlayStation, and Xbox engine access with 0% royalties | 3D pipeline lacks built-in PBR global illumination, terrain sculpting, and navmeshes |
| Ecosystem Extensions | Official maintained Spine, Rive, Box2D, Steamworks, and Nakama libraries | Smaller 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 SoftwareProcedural math, physics, or manual authoring software.
Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.