# Cocos2d\-x

C\+\+ game framework with scene graphs, sprites and actions for native mobile and desktop applications\.

ID: Q1248 · Revision: 1296

Type: software · License: MIT for Cocos2d\-x; third\-party components and imported assets have separate terms\.[^license] · Status: active

Website: https://github.com/cocos2d/cocos2d-x



Cocos2d\-x is a C\+\+ framework for games and other graphical applications on mobile and desktop platforms\. Its core workflow organizes content into scenes and nodes, with sprites, actions, interface components and supporting game systems\. It is a distinct project from Cocos Creator, and this article focuses on the documented Cocos2d\-x v4 baseline\.[^repo][^concepts][^release]

## Capabilities and substitutions

### Scene and node organization — supported

Scenes contain sprites, labels and other nodes; a scene graph organizes content and rendering\.[^concepts]

Use case: Maintaining scene\-based native C\+\+ games on the Cocos2d\-x v4 baseline · Platforms: Windows, macOS, Linux, Android, iOS · Region: Version, build and integration requirements apply

### Time\-based actions — supported

Actions change Node properties over time, including sprite movement and other transformations\.[^actions]

Use case: Maintaining scene\-based native C\+\+ games on the Cocos2d\-x v4 baseline · Platforms: Windows, macOS, Linux, Android, iOS · Region: Version, build and integration requirements apply

### Native v4 rendering — limited

v4 adds Metal on Apple platforms and requires Metal\-capable Apple devices; custom rendering APIs change from earlier versions\.[^release][^upgrade]

Use case: Maintaining scene\-based native C\+\+ games on the Cocos2d\-x v4 baseline · Platforms: Windows, macOS, Linux, Android, iOS · Region: Version, build and integration requirements apply

### Built\-in v4 HTML5/JSB route — unsupported

The v4 release notes explicitly remove the HTML5 engine and JavaScript bindings from this baseline\.[^release]

Use case: Maintaining scene\-based native C\+\+ games on the Cocos2d\-x v4 baseline · Platforms: Windows, macOS, Linux, Android, iOS · Region: Version, build and integration requirements apply

## References

[^repo]: [Cocos2d\-x repository](<https://github.com/cocos2d/cocos2d-x>) — C\+\+ platforms and distinction from Cocos Creator APIs (vendor; retrieved 2026-10-07T20:08:38Z)

[^concepts]: [Cocos2d\-x basic concepts](<https://docs.cocos2d-x.org/cocos2d-x/v4/en/basic_concepts/>) — Director, Scene, Sprite and scene graph (vendor; retrieved 2026-10-07T20:09:18Z)

[^components]: [Cocos2d\-x main components](<https://docs.cocos2d-x.org/cocos2d-x/v4/en/basic_concepts/getting_started.html>) — AppDelegate, shared/platform code and design resolution (vendor; retrieved 2026-10-07T20:09:34Z)

[^actions]: [Cocos2d\-x actions](<https://docs.cocos2d-x.org/cocos2d-x/v4/en/actions/>) — Time\-based Node property changes (vendor; retrieved 2026-10-07T20:11:18Z)

[^release]: [Cocos2d\-x 4\.0 release notes](<https://github.com/cocos2d/cocos2d-x/blob/v4/docs/RELEASE_NOTES.md>) — Metal, CMake, API changes and removals (vendor; retrieved 2026-10-07T20:09:06Z)

[^upgrade]: [Cocos2d\-x v4 upgrade guide](<https://docs.cocos2d-x.org/cocos2d-x/v4/en/upgradeGuide/>) — Metal\-capable Apple devices and rendering abstraction changes (vendor; retrieved 2026-10-07T20:09:50Z)

[^license]: [Cocos2d\-x license](<https://github.com/cocos2d/cocos2d-x/blob/v4/licenses/LICENSE_cocos2d-x.txt>) — MIT terms (vendor; retrieved 2026-10-07T20:09:34Z)

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

Source revision: https://substitutefor.net/entities/Q1248?revision=1296
