Godot Architecture: 7 steps for more flexible, extensible, testable code (video)

In case it hasn’t metioned before, exported variables can be used in _enter_tree().

@export var hit_box: HitBox

func _enter_tree() -> void:
    hit_box.hit.connect(take_damage)
2 Likes

That’s useful info too.

No, it’s not mine. I think I first heard about it in the Nodeletter, found the concept interesting and decided to contribute something.

:sheaf_of_rice: The Godot Barn opens
The Godot Barn is a new site operated and run by a group of Godot enthusiasts, who hope to enable the community in sharing learning material and resources amongst each other. Everything hosted there is supposed to be free to use.

It’s a place to mainly share interesting code snippets.

1 Like