-
-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor Phase 4: Migrate Resources, Path Centralization, Test Suite Stabilization, and Docs Alignment #582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
47e4797
Refactor Phase 4: Migrate Resources, Entities, and System scripts #527
ikostan f604848
Broken literal path references found — test files and docs still refe…
ikostan 59a5504
Update Development_Guide.md
ikostan 9ebf334
Update Development_Guide.md
ikostan 463c761
Update Development_Guide.md
ikostan a20c651
[FEATURE] Refactor hardcoded script paths to centralized GamePaths cl…
ikostan 3bf7739
Update test/gut/test_preserve_other_sections.gd
ikostan fb4f22e
the updated markdown to replace lines 84-99 in your Development_Guide…
ikostan 88b4029
Merge branch 'migrate-resources-entities-and-system-scripts' of https…
ikostan bbc1766
Inconsistency with the new guarded-reset pattern in test_reset_scenar…
ikostan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [gd_scene load_steps=2 format=3 uid="uid://bafpwe0qf0vm0"] | ||
|
|
||
| [ext_resource type="Script" uid="uid://dcr6gx3oaboj8" path="res://scripts/weapon.gd" id="1_xasec"] | ||
| [ext_resource type="Script" uid="uid://dcr6gx3oaboj8" path="res://scripts/entities/weapon.gd" id="1_xasec"] | ||
|
|
||
| [node name="WeaponManager" type="Node2D"] | ||
| script = ExtResource("1_xasec") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| ## Copyright (C) 2026 Egor Kostan | ||
| ## SPDX-License-Identifier: GPL-3.0-or-later | ||
| ## game_paths.gd | ||
| ## Centralized repository for all hardcoded script and scene paths. | ||
| ## Use this class to reference paths globally to avoid fragility and improve refactoring. | ||
|
|
||
| class_name GamePaths | ||
| extends RefCounted | ||
|
|
||
| # ========================================================= | ||
| # SCRIPT PATHS | ||
| # ========================================================= | ||
|
|
||
| ## Path to the player entity script. | ||
| const PLAYER: String = "res://scripts/entities/player.gd" | ||
|
|
||
| ## Path to the HUD UI script. | ||
| const HUD: String = "res://scripts/ui/hud.gd" | ||
|
|
||
| ## Path to the audio web bridge system script. | ||
| const AUDIO_WEB_BRIDGE: String = "res://scripts/system/audio_web_bridge.gd" | ||
|
|
||
| ## Path to the input remap button component script. | ||
| const INPUT_REMAP_BUTTON: String = "res://scripts/ui/components/input_remap_button.gd" | ||
|
|
||
| ## Path to the gameplay settings menu script. | ||
| const GAMEPLAY_SETTINGS: String = "res://scripts/ui/menus/gameplay_settings.gd" | ||
|
|
||
| ## Path to the core settings singleton/script. | ||
| const SETTINGS: String = "res://scripts/core/settings.gd" | ||
|
|
||
| # ========================================================= | ||
| # SCENE PATHS | ||
| # ========================================================= | ||
|
|
||
| ## Path to the audio settings menu scene. | ||
| const AUDIO_SETTINGS_SCENE: String = "res://scenes/audio_settings.tscn" | ||
|
|
||
| ## Path to the main game scene. | ||
| const MAIN_SCENE: String = "res://scenes/main_scene.tscn" | ||
|
|
||
| ## Path to the key mapping menu scene. | ||
| const KEY_MAPPING_SCENE: String = "res://scenes/key_mapping_menu.tscn" | ||
|
|
||
| ## Path to the gameplay settings menu scene. | ||
| const GAMEPLAY_SETTINGS_SCENE: String = "res://scenes/gameplay_settings.tscn" | ||
|
|
||
| ## Path to the pause menu scene. | ||
| const PAUSE_MENU_SCENE: String = "res://scenes/pause_menu.tscn" | ||
|
|
||
| ## Path to the options menu scene. | ||
| const OPTIONS_MENU_SCENE: String = "res://scenes/options_menu.tscn" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| uid://cj4el7nxnxm07 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.