cocos2d/cocos2d-x

cocos2d/cocos2d-x has 775,357 source lines of code out of 1,119,123 total lines across 2,982 files, counted with tokei from the v3 ref at commit e4b6a5ef8fcd on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

As of 2026-11-11 (commit e4b6a5ef8fcd), cocos2d/cocos2d-x contains 1,119,123 total lines: 775,357 code, 191,126 comments, 152,640 blank, across 2,982 files in 30 languages (top language: C++ 75.6%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-11 (commit e4b6a5ef8fcd), cocos2d/cocos2d-x contains 1,119,123 total lines: 775,357 code, 191,126 comments, 152,640 blank, across 2,982 files in 30 languages (top language: C++ 75.6%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving cocos2d/cocos2d-x to commit e4b6a5ef8fcd, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

Repository size insights

This is a large codebase by counted code lines. Code represents 69.3% of all lines, comments represent 17.1%, and the repository averages 260 code lines per file. C++ accounts for 75.6% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++8167192045862753704395886
C Header978161393657277232323343
JavaScript768281043534304678809
Objective-C++57159391101522272697
C43132891069513981196
Lua532576699625394638581
C++ Header541563187645476320
JSON246915690807
Java419943681717441382
Visual Studio Project125787577908
Objective-C237819545611741189
Python4451564079416661

Top language: C++ 75.6%. Generated on .

Counting rules and retention

cocos2d/cocos2d-x: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does cocos2d/cocos2d-x have?

cocos2d/cocos2d-x has 775,357 lines of code, plus 191,126 comment lines and 152,640 blank lines, for 1,119,123 total lines at commit e4b6a5ef8fcd on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the cocos2d/cocos2d-x line count measured?

OctoCounts resolved the public GitHub repository to commit e4b6a5ef8fcd, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for cocos2d/cocos2d-x?

This OctoCounts report was generated from v3 at commit e4b6a5ef8fcd on November 11, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for cocos2d/cocos2d-x on this page — 775,357 code lines across 30 languages, counted by tokei.