# cocos2d-x

> Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as…

- Type: agent or tool
- Field: Games & Graphics
- Repository: https://github.com/cocos2d/cocos2d-x
- GitHub stars: 19227
- Licence: none stated
- Language: C++
- Last push: 2025-05-09
- Page: https://imutechz.in/agents/cocos2d-x

## What it is
Cocos2d-x is an open-source, multi-platform framework for building 2D games, interactive books, demos and other graphical applications. It is based on cocos2d-iphone but uses C++ instead of Objective-C, and runs on iOS, Android, macOS, Windows and Linux. It offers Lua and JavaScript bindings alongside C++, and is released under the MIT license, compatible with open and closed source projects.

## Features
- Scene management with transitions between scenes
- Sprites, sprite sheets and particle system
- Composable actions such as Move, Rotate, Sequence and Repeat
- Integrated Box2d and Chipmunk physics engines
- Spine and Armature skeleton animation support
- Tile maps: orthogonal, isometric and hexagonal

## Best for
- 2D games for mobile and desktop
- Interactive books and graphical demos
- Cross-platform C++ game projects
- Teams wanting Lua or JavaScript bindings

## Pros
- Multi-platform: iOS, Android, macOS, Windows and Linux
- MIT licensed and commercial friendly
- C++ core with Lua and JavaScript bindings
- Open source with community support

## Cons
- Requires Python 2.7.5+ (not Python 3)
- NDK r16+ and Android Studio 3.0.0+ needed for Android builds
- Runtime minimums include iOS 8.0+ and Android 3.0.0+

## Install
```
$ git clone https://github.com/cocos2d/cocos2d-x.git
```

## Usage
```
$ cocos new MyGame -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIR
```

Tags: cocos2d-x, game-engine, 2d-games, cpp, cross-platform, open-source, lua, javascript
