Axmol C++/Lua game engine derived from Cocos2d-x with separate stable and development branches.
Overview Axmol is an open-source C++ game engine with Lua support, developed from Cocos2d-x 4.0. It supports scene-based game development across mobile and desktop targets, with additional qualified deployment paths. The project distinguishes its stable 2.x LTS branch from ongoing version 3 work, making branch selection important for compiler, rendering and migration expectations.[1] [2]
Contents Stable and development branches Axmol's repository assigns production-oriented 2.x LTS work to release/2.x and v3 development to the default dev branch. The documented language baselines differ: C++20 for stable v2 and C++23 for v3. The v3 page describes beta preparation and retains a notice that the download awaits an official tag. New rendering and physics announcements should therefore not be assumed to describe an installed stable release.[1] [2] [7]
Objects and memory Axmol retains a reference-counted object model inherited from its Cocos2d-x lineage. The memory guide explains retain and release operations and warns that keeping raw references while directly deleting an object can leave invalid references elsewhere. Familiar scene APIs do not eliminate ownership responsibilities. A migration should preserve the application's intended object lifetimes as well as its visible hierarchy.[4]
Migrating Cocos2d-x code The migration guide maps the cocos2d namespace to ax and lists renamed types and methods. It describes a compatibility header for easing transition and an optional tool for updating includes in Cocos2d-x 4.0 source trees. The tool is a convenience rather than a complete project converter, and the guide cautions that older Cocos2d-x versions may not work with that route.[3]
Shader pipeline Stable Axmol 2.x documents build-time processing of ESSL 3.10 or GLSL 4.50 shader sources into backend-specific output. Generated assets use names distinct from the source extensions and are included in the application's resources. Custom shader code must therefore fit both the language conventions and packaging path. Version 3's HLSL direction is a separate migration concern, not an interchangeable spelling of the 2.x workflow.[5] [7]
Extensions and deployment The stable branch lists desktop and mobile backends, Xbox through UWP and preview WebAssembly. Its extension ecosystem includes interface and animation integrations, with build-time controls for selecting components. The extension guide also records platform-specific restrictions and deprecated integrations. A feature appearing in the ecosystem is therefore not sufficient evidence that a project's exact runtime, export format and target platform combination is supported.[1] [6]
Licensing Axmol uses the MIT license and retains historical upstream and third-party notices in the relevant files. Commercial distribution and modification are permitted subject to the license conditions. Extension runtimes, external authoring tools and game assets still need their own terms considered; the core engine license does not grant blanket rights in every optional component.[6] [8]
Substitution considerations Axmol is a particularly relevant alternative to Cocos2d-x because the project documents that migration directly. This supports a directional replacement assessment for code-driven games, especially from the v4 baseline. It does not establish binary compatibility, universal shader interchange or automatic conversion of older projects. The chosen Axmol branch and the game's dependencies determine the practical scope of the port.[1] [2] [3] [5]
References Axmol stable 2.x README C++20, language/platform/backend lists and preview WebAssembly
vendor · retrieved 2026-10-07 Axmol development README Stable versus dev branches; v3 preparation and C++23
vendor · retrieved 2026-10-07 Cocos2d-x migration guide Namespace/types, conversion-tool scope and shader changes
vendor · retrieved 2026-10-07 Axmol memory management Reference counting and retain/release ownership
vendor · retrieved 2026-10-07 Shaders in Axmol 2.x Build-time compilation, input languages and output names
vendor · retrieved 2026-10-07 Axmol extensions CMake controls, optional/deprecated extensions and platform limits
vendor · retrieved 2026-10-07 Axmol 3 preview Pre-release status, HLSL and stable baseline recommendation
vendor · retrieved 2026-10-07 Axmol license MIT terms and upstream/component notices
vendor · retrieved 2026-10-07 Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.