match-3 grid generation

make game scene modular
global debug mode
This commit is contained in:
2025-09-24 10:45:14 +04:00
parent 122b5cb55f
commit afc808f0d6
21 changed files with 506 additions and 94 deletions

View File

@@ -100,7 +100,7 @@ func _get_match_line(start: Vector2i, dir: Vector2i) -> Array:
GameManager.start_match3_game()
# ❌ Wrong
get_tree().change_scene_to_file("res://scenes/match3/match3.tscn")
GameManager.start_match3_game() # Use GameManager instead of direct scene loading
```
### Autoload Usage
@@ -227,7 +227,7 @@ wip
get_tree().change_scene_to_file("some_scene.tscn")
# ❌ Don't hardcode paths
var tile = load("res://scenes/match3/tile.tscn")
var tile = load("res://scenes/game/gameplays/tile.tscn")
# ❌ Don't ignore null checks
var node = get_node("SomeNode")