cocos2d/cocos2d-x-samples has 519,022 source lines of code out of 907,001 total lines across 3,464 files, counted with tokei from the v3 ref at commit 9f1472d9083a on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
cocos2d/cocos2d-x-samples: 519,022 code lines at commit 9f1472d9083a, counted with tokei-15.0.0 on 2026-11-11. Saved result b5bfd63bedde7cc08ba5e328d694c0eb7ce3d7d51a368c9413414d2698a946e9.
OctoCounts produced this report by resolving cocos2d/cocos2d-x-samples to commit 9f1472d9083a, 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 57.2% of all lines, comments represent 30.1%, and the repository averages 150 code lines per file. C Header accounts for 38.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C Header | 1670 | 494135 | 198013 | 231218 | 64904 |
| C++ | 634 | 241551 | 188987 | 21217 | 31347 |
| C | 39 | 29476 | 26436 | 1344 | 1696 |
| Lua | 150 | 27790 | 20804 | 3500 | 3486 |
| XML | 367 | 25478 | 19754 | 3124 | 2600 |
| Objective-C | 41 | 18508 | 13874 | 1969 | 2665 |
| Visual Studio Project | 53 | 12939 | 12927 | 12 | 0 |
| Java | 92 | 15886 | 10371 | 3353 | 2162 |
| Objective-C++ | 60 | 12252 | 8252 | 1925 | 2075 |
| C# | 27 | 4286 | 2928 | 819 | 539 |
| JavaScript | 25 | 3428 | 2067 | 1079 | 282 |
| Visual Studio Solution | 17 | 1941 | 1931 | 0 | 10 |
| CMake | 32 | 2387 | 1829 | 216 | 342 |
| C++ Header | 12 | 2532 | 1689 | 330 | 513 |
| Python | 15 | 2074 | 1581 | 140 | 353 |
| Swift | 8 | 1665 | 1157 | 252 | 256 |
| Makefile | 43 | 1417 | 1096 | 45 | 276 |
| MSBuild | 10 | 1114 | 1070 | 32 | 12 |
| JSON | 30 | 977 | 973 | 0 | 4 |
| HTML | 3 | 972 | 948 | 1 | 23 |
| Shell | 13 | 761 | 567 | 74 | 120 |
| GLSL | 28 | 1101 | 489 | 469 | 143 |
| XAML | 21 | 463 | 383 | 30 | 50 |
| .NET Resource | 4 | 516 | 280 | 236 | 0 |
| BASH | 2 | 328 | 248 | 44 | 36 |
| Batch | 3 | 246 | 163 | 0 | 83 |
| YAML | 1 | 139 | 128 | 10 | 1 |
| INI | 2 | 122 | 47 | 40 | 35 |
| Prolog | 2 | 34 | 30 | 0 | 4 |
| Markdown | 9 | 653 | 0 | 446 | 207 |
| Plain Text | 51 | 1830 | 0 | 1461 | 369 |
Top language: C Header 38.2%. Generated on .
cocos2d/cocos2d-x-samples: 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-samples has 519,022 lines of code, plus 273,386 comment lines and 114,593 blank lines, for 907,001 total lines at commit 9f1472d9083a on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 9f1472d9083a, 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 9f1472d9083a 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-samples on this page — 519,022 code lines across 31 languages, counted by tokei.