ai-agent

Build games with Cocos2d-x

Get a cross-platform game engine, for Android, iOS, and more.
19,125 stars7,052 forksC++Guide quality 8/10Updated 5/9/2025100% free · open source
What it does

Cocos2d-x is a cross-platform game development framework that allows developers to create 2D games and applications for various platforms, including iOS, Android, and desktop devices.

When to use it
  • When building 2D games or interactive applications that require cross-platform compatibility
  • When developing games that need to run on both mobile and desktop devices
  • When creating applications that require a high degree of customization and control over the game engine
Ready-to-paste prompt
cocos new MyGame -l cpp -d /Users/username/MyGame
Heads up: The Cocos2d-x framework requires a compatible version of the NDK (Native Development Kit) to be installed on the system, which can be downloaded from the official Android website
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/cocos2d-x && curl -fsSL https://workflowstacks.com/api/skills/cocos2d-x/claude-skill -o ~/.claude/skills/cocos2d-x/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Build games with Cocos2d-x works
Codeflow
Free to inspect

Build games with Cocos2d-x is a very large C++ project (~403k lines across 1802 code files, plus 484 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit 16 months ago, no license file, has a test suite.

Size
Very large codebase
~403k lines · 1802 code files · days to read — use, don't read
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Python
No API keys detected
C++ 86%Lua 6%C 3%Objective-C++ 2%Java 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
What's in each folder
extensions/Sub-packages / plugins349 files
templates/Templates154 files
docs/Documentation14 files
cocos/Folder1457 files
tools/Helper scripts101 files
licenses/Folder29 files
cmake/Folder25 files
external/Community contributions1 files
READMEHas testsDocumentedCI checksNo licenseLast update 16 mo ago
Quick Actions
Details
Creator
cocos2d
Language
C++
Category
ai-agent
Published
11/18/2010

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.