match-3 grid generation
make game scene modular global debug mode
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user