Reorganize the codebase into role-based folders (snake_case)
Move the 40-odd root-level scripts and scenes into a tree that groups by role,
per the approved roadmap (WS2/WS3): actors/{player,matador,bear}, systems/{combat,
fx,input,debug,render,crowd,config}, ui/, props/ (was tscn_s/). Rename the shell
scene.tscn -> levels/game_shell.tscn and every PascalCase scene to snake_case
(Player.tscn -> player.tscn, MainMenu.tscn -> main_menu.tscn, etc.) so the
case-insensitive web/macOS filesystems can't alias two files together.
Done as a scripted move: each file travels with its .uid; every quoted res:// path
across scenes, scripts, .tres, and project.godot's 9 autoloads is rewritten; the
.godot uid/class cache is rebuilt from scratch. Scenes still resolve by uid, so the
rewrite is belt-and-suspenders. Lint globs (run_tests.sh + both CI workflows) now
walk the new dirs; an orphan animation_tree.gd.uid and 7 pre-existing trailing-
whitespace lints (barrel/torch, never covered by the old root-only glob) are cleaned.
Full suite green on both sides. Asset consolidation (Assets/Animations/fonts ->
art/) is deferred — moving imported .glb/.png/.ttf is safer done in the editor.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KoYBYQgRyY1zDHXMsXY3V
This commit is contained in:
+9
-9
@@ -17,19 +17,19 @@ config/features=PackedStringArray("4.7", "GL Compatibility")
|
||||
boot_splash/bg_color=Color(0, 0, 0, 1)
|
||||
boot_splash/image="res://Assets/loading_screen.png"
|
||||
config/icon="uid://dct1d88g015el"
|
||||
config/run/main_scene="res://MainMenu.tscn"
|
||||
config/run/main_scene="res://ui/main_menu.tscn"
|
||||
|
||||
[autoload]
|
||||
|
||||
DP="*res://debug_params.gd"
|
||||
Console="*res://console.gd"
|
||||
Controls="*res://controls_manager.gd"
|
||||
DebugDraw="*res://debug_draw.gd"
|
||||
Settings="*res://settings.gd"
|
||||
DP="*res://systems/debug/debug_params.gd"
|
||||
Console="*res://systems/debug/console.gd"
|
||||
Controls="*res://systems/input/controls_manager.gd"
|
||||
DebugDraw="*res://systems/debug/debug_draw.gd"
|
||||
Settings="*res://systems/config/settings.gd"
|
||||
Run="*res://levels/run_state.gd"
|
||||
OrientationGuard="*res://orientation_guard.gd"
|
||||
WebStartGate="*res://web_start_gate.gd"
|
||||
Fx="*res://fx/fx.gd"
|
||||
OrientationGuard="*res://ui/orientation_guard.gd"
|
||||
WebStartGate="*res://ui/web_start_gate.gd"
|
||||
Fx="*res://systems/fx/fx.gd"
|
||||
|
||||
[display]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user