MENU

Fun & Interesting

Godot Components - how to structure a game into manageable parts (Beginner/Intermediate)

Godotneers 176,114 1 year ago
Video Not Working? Fix It Now

Hello Godotneers! When you are creating game in Godot, it is often hard to decide how to structure all your nodes and scenes. Which nodes should go into which scene? Which nodes should talk to each other and when? This video explores ways in which you can create self-contained components in Godot and shows techniques that allow components to access other components and communicate with them while still keeping them usable independently. Contents =========== 00:00 Introduction 01:07 The setup 06:00 Defining components 08:19 Creating components at runtime 10:46 Signals 13:35 Detection with Areas 19:31 Contracts 24:22 Re-use of components 31:12 Detection with slide collisions 35:25 Groups as classifier 41:17 Combining components 47:45 Autoloads 51:53 Custom signals 53:40 Signal relays 58:48 Component access with groups 1:03:05 Call propagation 1:06:22 Configurable node paths 1:10:01 Conclusion Useful links =========== Godot Signals - https://docs.godotengine.org/en/stable/getting_started/step_by_step/signals.html Godot Physics Introduction - https://docs.godotengine.org/en/stable/tutorials/physics/physics_introduction.html#collision-layers-and-masks Godot Areas - https://docs.godotengine.org/en/stable/tutorials/physics/using_area_2d.html Godot Groups - https://docs.godotengine.org/en/stable/tutorials/scripting/groups.html Godot Autoloads - https://docs.godotengine.org/en/stable/tutorials/scripting/singletons_autoload.html

Comment