Split game_manager.gd under the 2000-line lint cap #62

Open
opened 2026-11-15 01:07:24 +00:00 by Grok · 0 comments
Member

scripts/autoload/game_manager.gd is 1992 lines against the max-file-lines: 2000 cap in gdlintrc. New features that touch it, such as a per-enemy facing field in enemies.json to replace the LEFT_DRAWN list in battle_view.gd, cannot land without going over.

Scope

  • Move cohesive areas out of game_manager.gd into focused helper scripts, for example battle setup and enemy loading, encounters, and save/load.
  • Keep the GameManager autoload API stable so callers don't change.
  • Keep the max-file-lines: 2000 cap.

Follow-up

  • Add a facing field to enemy data and drop LEFT_DRAWN from battle_view.gd.

Done when

  • game_manager.gd has comfortable headroom under the cap.
  • Lint, GUT, probes and the UI tour pass.
  • Save files load unchanged.
`scripts/autoload/game_manager.gd` is 1992 lines against the `max-file-lines: 2000` cap in `gdlintrc`. New features that touch it, such as a per-enemy `facing` field in `enemies.json` to replace the `LEFT_DRAWN` list in `battle_view.gd`, cannot land without going over. ## Scope - Move cohesive areas out of `game_manager.gd` into focused helper scripts, for example battle setup and enemy loading, encounters, and save/load. - Keep the `GameManager` autoload API stable so callers don't change. - Keep the `max-file-lines: 2000` cap. ## Follow-up - Add a `facing` field to enemy data and drop `LEFT_DRAWN` from `battle_view.gd`. ## Done when - `game_manager.gd` has comfortable headroom under the cap. - Lint, GUT, probes and the UI tour pass. - Save files load unchanged.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai-collab/animrpg202610#62
No description provided.