# Axmol

C\+\+/Lua game engine derived from Cocos2d\-x with separate stable and development branches\.

ID: Q1268 · Revision: 1316

Type: software · License: MIT for Axmol, with retained upstream and third\-party component notices\.[^license] · Status: active

Website: https://axmol.dev/



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\.[^stable][^dev]

## 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\.[^stable][^dev][^preview]

## 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\.[^memory]

## 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\.[^migration]

## 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\.[^shaders][^preview]

## 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\.[^stable][^extensions]

## 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\.[^license][^extensions]

## Substitution considerations

Axmol is a particularly relevant alternative to [Cocos2d\-x](/cocos2dx) 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\.[^migration][^stable][^shaders][^dev]

## Capabilities and substitutions

### C\+\+ and Lua development — supported

The stable branch supports C\+\+ and Lua game projects across documented mobile and desktop targets\.[^stable]

Use case: Maintaining or developing code\-driven cross\-platform C\+\+ games · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### Cocos2d\-x migration path — limited

The guide documents namespace/type changes and an optional include\-migration tool aimed at v4; older projects may require additional work\.[^migration]

Use case: Maintaining or developing code\-driven cross\-platform C\+\+ games · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### Build\-time shader processing — limited

Stable 2\.x processes GLSL/ESSL sources for target backends, while v3 changes to an HLSL workflow\.[^shaders][^preview]

Use case: Maintaining or developing code\-driven cross\-platform C\+\+ games · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### WebAssembly deployment — limited

The stable branch explicitly labels WebAssembly support as preview\.[^stable]

Use case: Maintaining or developing code\-driven cross\-platform C\+\+ games · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

### [Substitute for Cocos2d\-x](/cocos2dx) — limited

Assessment: 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\.[^stable][^migration][^shaders]

Use case: Maintaining or developing code\-driven cross\-platform C\+\+ games · Platforms: Windows, macOS, Linux, Android, iOS, tvOS, Web · Region: Version, build and integration requirements apply

## References

[^stable]: [Axmol stable 2\.x README](<https://github.com/axmolengine/axmol/blob/release/2.x/README.md>) — C\+\+20, language/platform/backend lists and preview WebAssembly (vendor; retrieved 2026-10-07T20:09:18Z)

[^dev]: [Axmol development README](<https://github.com/axmolengine/axmol>) — Stable versus dev branches; v3 preparation and C\+\+23 (vendor; retrieved 2026-10-07T20:08:38Z)

[^migration]: [Cocos2d\-x migration guide](<https://github.com/axmolengine/axmol/wiki/Cocos2d%E2%80%90x-migration-guide>) — Namespace/types, conversion\-tool scope and shader changes (vendor; retrieved 2026-10-07T20:08:22Z)

[^memory]: [Axmol memory management](<https://github.com/axmolengine/axmol/wiki/Memory-Management>) — Reference counting and retain/release ownership (vendor; retrieved 2026-10-07T20:09:06Z)

[^shaders]: [Shaders in Axmol 2\.x](<https://github.com/axmolengine/axmol/wiki/Shaders-in-Axmol-2.x>) — Build\-time compilation, input languages and output names (vendor; retrieved 2026-10-07T20:09:06Z)

[^extensions]: [Axmol extensions](<https://github.com/axmolengine/axmol/wiki/Extensions>) — CMake controls, optional/deprecated extensions and platform limits (vendor; retrieved 2026-10-07T20:09:06Z)

[^preview]: [Axmol 3 preview](<https://axmol.dev/v3/>) — Pre\-release status, HLSL and stable baseline recommendation (vendor; retrieved 2026-10-07T20:08:22Z)

[^license]: [Axmol license](<https://github.com/axmolengine/axmol/blob/release/2.x/LICENSE>) — MIT terms and upstream/component notices (vendor; retrieved 2026-10-07T20:09:18Z)

Source revision: https://substitutefor.net/entities/Q1268?revision=1316
