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.

cocos2d/cocos2d-x: 775,357 code lines at commit e4b6a5ef8fcd, counted with tokei-15.0.0 on 2026-11-11. Saved result cc1c7e75f73d75af2505a2bea67fa8047c012803b13bfa1abcd895d71bd300bc.

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
CMake5248863843645398
Makefile3422321661144427
GLSL422036142856741
INI3123031063605635
FlatBuffers Schema674759532120
Shell17799564110125
BASH34923726654
Visual Studio Solution423623204
Batch16296224072
XML1746821419658
MSBuild513513500
PowerShell21841341535
Prolog5158134024
Autoconf1515100
HTML1443077
Module-Definition13300
Markdown86960478218
Plain Text37180201459343

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.