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.
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.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 816 | 719204 | 586275 | 37043 | 95886 |
| C Header | 978 | 161393 | 65727 | 72323 | 23343 |
| JavaScript | 76 | 82810 | 43534 | 30467 | 8809 |
| Objective-C++ | 57 | 15939 | 11015 | 2227 | 2697 |
| C | 43 | 13289 | 10695 | 1398 | 1196 |
| Lua | 532 | 57669 | 9625 | 39463 | 8581 |
| C++ Header | 54 | 15631 | 8764 | 547 | 6320 |
| JSON | 24 | 6915 | 6908 | 0 | 7 |
| Java | 41 | 9943 | 6817 | 1744 | 1382 |
| Visual Studio Project | 12 | 5787 | 5779 | 0 | 8 |
| Objective-C | 23 | 7819 | 5456 | 1174 | 1189 |
| Python | 44 | 5156 | 4079 | 416 | 661 |
| CMake | 52 | 4886 | 3843 | 645 | 398 |
| Makefile | 34 | 2232 | 1661 | 144 | 427 |
| GLSL | 42 | 2036 | 1428 | 567 | 41 |
| INI | 31 | 2303 | 1063 | 605 | 635 |
| FlatBuffers Schema | 6 | 747 | 595 | 32 | 120 |
| Shell | 17 | 799 | 564 | 110 | 125 |
| BASH | 3 | 492 | 372 | 66 | 54 |
| Visual Studio Solution | 4 | 236 | 232 | 0 | 4 |
| Batch | 16 | 296 | 224 | 0 | 72 |
| XML | 17 | 468 | 214 | 196 | 58 |
| MSBuild | 5 | 135 | 135 | 0 | 0 |
| PowerShell | 2 | 184 | 134 | 15 | 35 |
| Prolog | 5 | 158 | 134 | 0 | 24 |
| Autoconf | 1 | 51 | 51 | 0 | 0 |
| HTML | 1 | 44 | 30 | 7 | 7 |
| Module-Definition | 1 | 3 | 3 | 0 | 0 |
| Markdown | 8 | 696 | 0 | 478 | 218 |
| Plain Text | 37 | 1802 | 0 | 1459 | 343 |
Top language: C++ 75.6%. Generated on .
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.
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.
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.
This OctoCounts report was generated from v3 at commit e4b6a5ef8fcd on November 11, 2026.
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.