match-3 grid generation
make game scene modular global debug mode
This commit is contained in:
@@ -17,8 +17,11 @@ func _exit_tree():
|
||||
search_timer.queue_free()
|
||||
|
||||
func _ready():
|
||||
visible = false
|
||||
DebugManager.debug_toggled.connect(_on_debug_toggled)
|
||||
|
||||
# Initialize with current debug state
|
||||
var current_debug_state = DebugManager.is_debug_enabled()
|
||||
visible = current_debug_state
|
||||
regenerate_button.pressed.connect(_on_regenerate_pressed)
|
||||
gem_types_spinbox.value_changed.connect(_on_gem_types_changed)
|
||||
grid_width_spinbox.value_changed.connect(_on_grid_width_changed)
|
||||
@@ -62,7 +65,7 @@ func _find_match3_scene():
|
||||
var current_scene = get_tree().current_scene
|
||||
if current_scene:
|
||||
# Try to find match3 by class name first
|
||||
match3_scene = _find_node_by_script(current_scene, "res://scenes/match3/match3.gd")
|
||||
match3_scene = _find_node_by_script(current_scene, "res://scenes/game/gameplays/match3_gameplay.gd")
|
||||
|
||||
# Fallback: search by common node names
|
||||
if not match3_scene:
|
||||
|
||||
Reference in New Issue
Block a user