This file is a living snapshot of Codexitma size, structure, and content metrics.
It is meant to answer practical questions such as:
- how large the codebase is
- where the complexity currently sits
- how much test coverage exists in terms of declared tests
- how much authored game content ships with the repo
- which files are becoming the next refactor pressure points
- Snapshot date:
March 6, 2026 - Base commit:
e6285c9 - Measurement tools:
cloc 2.08gitscripts/update_project_metrics.py
- Git commits:
92 - Git-tracked files:
143 cloc-counted files:124- Repository size on disk:
2.1G
- Total
cloccode lines:23,304 - Total
clocblank lines:2,494 - Total
cloccomment lines:101
- Swift:
69files,19,005code lines - JSON:
20files,2,246lines - Markdown:
9files,1,444lines - Shell:
3files,172lines - YAML:
2files,142lines
These are plain line counts rather than cloc code-line counts.
- Total Swift raw lines:
20,917 - Production Swift under
Sources/:65files,19,277lines - Test Swift under
Tests/:3files,1,596lines
- App/frontend/editor layer:
49files,16,056raw lines - Engine layer:
6files,1,205raw lines - Model layer:
3files,1,286raw lines - Content loader layer:
3files,584raw lines
- Declared tests:
59
- Embedded adventures:
2 - Total bundled maps:
16 - Total interactables:
62 - Total portals:
28 - Total dialogue entries:
16 - Total encounter definitions:
4 - Total NPC definitions:
14 - Total enemy definitions:
25 - Total shop definitions:
3 - Total objective definition files:
4 - Stable README screenshots in repo:
16
-
Ashes of Merrow- maps:
6 - interactables:
24 - portals:
10 - dialogues:
6 - encounters:
2 - NPCs:
5 - enemies:
9 - shops:
0 - objective files:
2
- maps:
-
Starfall Requiem- maps:
10 - interactables:
38 - portals:
18 - dialogues:
10 - encounters:
2 - NPCs:
9 - enemies:
16 - shops:
3 - objective files:
2
- maps:
- Sources/Game/App/SDLGraphicsLauncher+DepthRendering.swift:
1014lines - Sources/Game/App/MapBoardView+DepthRendering.swift:
869lines - Sources/Game/App/SDLGraphicsLauncher+SceneRendering.swift:
741lines - Sources/Game/App/AdventureEditorSession.swift:
693lines - Sources/Game/App/MapBoardView+DepthSupport.swift:
683lines
- The project is graphics-heavy. The majority of the codebase sits in rendering, frontend composition, editor UX, automation, and cross-platform presentation support.
- The engine core is comparatively compact. The complexity cost is mostly in presentation and tooling, not the turn-resolution rules themselves.
Depth 3D, SDL parity, and the editor remain the biggest context-pressure zones.
Run:
./scripts/update_project_metrics.pyThe script re-runs cloc, git, and the repo-specific aggregation logic, then rewrites this file in place.
Note: because cloc is run with --vcs=git, the snapshot measures the tracked repository state visible to git at generation time.