software · Q982
Solar2D
Lua-based open-source engine for cross-platform 2D games and applications.
Overview
Solar2D is a Lua-based 2D game engine developed from Corona SDK. It combines a desktop Simulator, APIs for game and application behavior, platform build tools and optional plugins. Its main development workflow emphasizes editing code and checking the result quickly, including on-device iteration through development live builds.[1][2][4]
Development workflow
Solar2D runs a project in its desktop Simulator while developers edit Lua in a separate text editor. The engine's repository describes this as a prototyping and iteration workflow and points to platform builds for deployment. Its origins in Corona SDK explain the older name still present in parts of the documentation, but that history is not a guarantee that every old plugin or project configuration works with a current build.[1][2]
Scenes and object ownership
Composer organizes screens as Lua modules with creation, showing, hiding and destruction events. Display objects must belong to the scene's view group for Composer to manage their cleanup. A hidden scene normally remains in memory, so returning to it does not necessarily rerun initialization or reset game state. Developers remain responsible for tasks such as cancelling timers, removing runtime listeners and disposing of non-display resources.[3]
Live builds on devices
A live build is first built and installed on a device, then receives code and asset changes through the local network. The documented route uses development provisioning profiles for Apple platforms or debug keystores for Android-family builds. It is an iteration mechanism, not a way to update arbitrary production installations. Changes to build.settings or config.lua typically require another build and installation rather than ordinary live synchronization.[4]
Native APIs and plugins
Solar2D Native provides a bridge between Lua and native code, allowing functionality beyond the standard Lua APIs and reusable plugin development. That route introduces platform-specific development tools and maintenance. Existing plugins can supply integrations, but the availability of a plugin directory does not establish that a particular service, plugin version or native API works on every deployment target.[5]
Browser differences
The HTML5 guide documents calling JavaScript modules from Lua and explicitly notes that these JavaScript plugins cannot execute in the desktop Simulator. It suggests a Lua wrapper for separating browser behavior from a simulator placeholder. The same guide retains a beta notice. Browser-dependent integrations therefore need to be assessed in the actual HTML5 build, rather than being treated as validated by a successful Simulator session.[6]
Availability and licensing
The project lists mobile, desktop, connected-TV and HTML5 targets and states that using the engine incurs no engine fees or royalties. Its repository identifies MIT as the engine license while warning that incorporated libraries may have different terms. External plugins and distribution services should be assessed separately; the core's licensing model is not evidence that every optional dependency or store requirement is free.[1][2]
Substitution considerations
Solar2D and Gideros overlap in Lua-driven 2D game development and cross-platform deployment. Solar2D may serve the same project goal when its Simulator, Composer and extension APIs suit the team. Moving between them remains an API and content-pipeline port: Lua familiarity can transfer, but scene structure, object ownership, plugins and build settings require review. This assessment does not claim automatic conversion or equivalence for Gideros's broader 3D capabilities.[2][3][5][7]
Capabilities & limitations
Lua scene management
supportedComposer provides scene transitions and lifecycle events, with explicit cleanup responsibilities beyond scene-owned display objects.[3]
Creating and iterating on Lua-based 2D games · Windows, macOS, Linux, Android, iOS, tvOS, Web · Version, build and integration requirements apply
1 source · check evidence
Scene lifecycle, groups, retention and cleanup
vendor · checked 2026-10-07On-device live iteration
limitedLive builds target iOS, Android/Kindle Fire and tvOS with development provisioning or debug signing and local-network synchronization from a macOS or Windows development host; build configuration changes generally require rebuilding.[4]
Creating and iterating on Lua-based 2D games · iOS, Android, Kindle Fire, tvOS · Version, build and integration requirements apply
1 source · check evidence
Development signing, same-network updates and configuration rebuilds
vendor · checked 2026-10-07Native extensions
supportedSolar2D Native bridges Lua and native platform code and supports reusable plugins. The cited guide documents iOS and Android targets, using macOS for either target or Windows for Android.[5]
Creating and iterating on Lua-based 2D games · iOS, Android · Version, build and integration requirements apply
1 source · check evidence
Lua/native bridge, plugin creation and platform tools
vendor · checked 2026-10-07Browser integration
limitedHTML5 documentation describes a JavaScript bridge but labels the route beta; JavaScript plugins do not execute in the desktop Simulator.[6]
Creating and iterating on Lua-based 2D games · HTML5 web builds · Version, build and integration requirements apply
1 source · check evidence
Beta notice; JavaScript module loader and Simulator limitation
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Gideros for Creating and iterating on Lua-based 2D games
limitedAssessment: a substitute for Gideros in Lua-based 2D game development when Solar2D's APIs, Composer and build workflow fit the project. Sharing Lua does not make scene code, native plugins or project files interchangeable.[2][3][5][7]
Windows, macOS, Linux, Android, iOS, tvOS, Web · Version, build and integration requirements apply
References
- Solar2D overview
Lua workflow, platforms and no engine fees or royalties
vendor · retrieved 2026-10-07 - Solar2D repository
Simulator, editors, MIT licensing and dependency exceptions
vendor · retrieved 2026-10-07 - Composer Library
Scene lifecycle, groups, retention and cleanup
vendor · retrieved 2026-10-07 - Generating Live Builds
Development signing, same-network updates and configuration rebuilds
vendor · retrieved 2026-10-07 - Solar2D Native
Lua/native bridge, plugin creation and platform tools
vendor · retrieved 2026-10-07 - JavaScript in HTML5 builds
Beta notice; JavaScript module loader and Simulator limitation
vendor · retrieved 2026-10-07 - Gideros overview
Lua development environment and platform deployment
vendor · retrieved 2026-10-07 - https://docs.coronalabs.com/guide/distribution/liveBuild/index.html
Live Build Creation lists iOS, Android and tvOS, including Kindle Fire debug signing. Native System Requirements and the HTML5 JavaScript guide support the other two capability corrections.
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 1030 | 2026-10-13 17:48:33 | /* wbeditentity-create-item:0| */ sf:535095c6-e32d-4f87-93df-9b49918f184b:v2 | Correct three capability platform scopes to match their cited workflows: development live builds target iOS/Android/Kindle Fire/tvOS, the cited Native guide cov | attribution: /proposals/535095c6-e32d-4f87-93df-9b49918f184b |