Unlock Godot's Full Potential with Components ๐
Learn how to create component-like structures in Godot to maximize its capabilities beyond basic GDScript object orientation.

Tienne_k
134.9K views โข Mar 28, 2024

About this video
In this video, I talk about making component-like structures in Godot, which I feel is often overlooked.
Yes, GDScript is object oriented, but we have such a powerful tool (nodes) at our hands, we might as well use it to its fullest!
Using nodes as components is so much more flexible than rigid OOP inheritance trees.
Of course, if you over-do it, you'll just be shooting yourself in the foot; ideally you'd want a healthy mixture of both. That's why Godot is so great!
Join our discord: https://discord.gg/VTvG7ZQNdQ
Many people have been asking for a demo project. Here it is!
๐https://github.com/WhoStoleMyCoffee/ComponentsDemo
Btw, the plugin you see me use is a fork of Godot-Vim. Still a work in progress tho.
๐ https://github.com/bernardo-bruning/godot-vim
Music ๐ต โโโโโโโโโโโโโโโโ
- Los Encinos by Quincas Moreira
- Bossa Sonsa, also by Quincas Moreira
Timestamps โฐ โโโโโโโโโโโโโโโโ
0:00 Demo
0:20 The problem with OOP
1:30 FPS analogy
2:08 ECSs
3:10 Godot as an ECS??
4:40 Handling components
5:44 Conclusion
#godot #godotengine
Yes, GDScript is object oriented, but we have such a powerful tool (nodes) at our hands, we might as well use it to its fullest!
Using nodes as components is so much more flexible than rigid OOP inheritance trees.
Of course, if you over-do it, you'll just be shooting yourself in the foot; ideally you'd want a healthy mixture of both. That's why Godot is so great!
Join our discord: https://discord.gg/VTvG7ZQNdQ
Many people have been asking for a demo project. Here it is!
๐https://github.com/WhoStoleMyCoffee/ComponentsDemo
Btw, the plugin you see me use is a fork of Godot-Vim. Still a work in progress tho.
๐ https://github.com/bernardo-bruning/godot-vim
Music ๐ต โโโโโโโโโโโโโโโโ
- Los Encinos by Quincas Moreira
- Bossa Sonsa, also by Quincas Moreira
Timestamps โฐ โโโโโโโโโโโโโโโโ
0:00 Demo
0:20 The problem with OOP
1:30 FPS analogy
2:08 ECSs
3:10 Godot as an ECS??
4:40 Handling components
5:44 Conclusion
#godot #godotengine
Video Information
Views
134.9K
Likes
7.6K
Duration
6:12
Published
Mar 28, 2024
User Reviews
4.7
(26) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now