software · Q1268
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]
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]
Capabilities & limitations
C++ and Lua development
supportedThe stable branch supports C++ and Lua game projects across documented mobile and desktop targets.[1]
Maintaining or developing code-driven cross-platform C++ games · Windows, macOS, Linux, Android, iOS, tvOS, Web · Version, build and integration requirements apply
1 source · check evidence
C++20, language/platform/backend lists and preview WebAssembly
vendor · checked 2026-10-07Cocos2d-x migration path
limitedThe guide documents namespace/type changes and an optional include-migration tool aimed at v4; older projects may require additional work.[3]
Maintaining or developing code-driven cross-platform C++ games · Windows, macOS, Linux, Android, iOS, tvOS, Web · Version, build and integration requirements apply
1 source · check evidence
Namespace/types, conversion-tool scope and shader changes
vendor · checked 2026-10-07Build-time shader processing
limitedStable 2.x processes GLSL/ESSL sources for target backends, while v3 changes to an HLSL workflow.[5][7]
Maintaining or developing code-driven cross-platform C++ games · Windows, macOS, Linux, Android, iOS, tvOS, Web · Version, build and integration requirements apply
2 sources · check evidence
Build-time compilation, input languages and output names
vendor · checked 2026-10-07Pre-release status, HLSL and stable baseline recommendation
vendor · checked 2026-10-07WebAssembly deployment
limitedThe stable branch explicitly labels WebAssembly support as preview.[1]
Maintaining or developing code-driven cross-platform C++ games · Windows, macOS, Linux, Android, iOS, tvOS, Web · Version, build and integration requirements apply
1 source · check evidence
C++20, language/platform/backend lists and preview WebAssembly
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Cocos2d-x for Maintaining or developing code-driven cross-platform C++ games
limitedAssessment: a successor-style alternative for Cocos2d-x C++ games, especially v4 projects, supported by a dedicated migration guide. Namespace/type changes, shaders, extensions and build requirements need review; conversion tooling does not guarantee a complete or lossless port.[1][3][5]
Windows, macOS, Linux, Android, iOS, tvOS, Web · Version, build and integration requirements apply
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
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 |
|---|---|---|
| 1316 | 2026-10-14 01:46:04 | /* wbeditentity-create-item:0| */ sf:8fee3002-e741-4eca-b542-4b28546511df:v1 | Adds Axmol with a directional Cocos2d-x migration assessment. Separates stable 2.x LTS from unreleased v3 work, including C++ and shader requirements, and avoid | attribution: /proposals/8fee3002-e741-4eca-b542-4b28546511df |