A seguir

How You Can Easily Make Your Code Simpler in Godot 4

0 Visualizações· 23/11/24
Andreas Straus
Andreas Straus
Assinantes
0
Dentro Tutoriais

In this video we look at Inheritance vs Composition and a scenario where Composition is preferable in Godot 4.

Both Inheritance and Composition have their pros and cons, but Inheritance is for more often taught, despite Composition being very important in Game Development. I recently ran into Composition in my own projects and felt that it was vastly underrated and deserved to be taught.

Discord - https://discord.gg/skPc32bUfA

Sprout Lands by Cup Nooble (The art I'm using):https://cupnooble.itch.io/sprout-lands-asset-pack

Music in the outro:https://www.youtube.com/watch?v=44MCworZf78

Chapters:
00:00 Intro
00:27 Inheritance Approach
01:57 Composition Approach
03:06 Setting up the Components
04:53 Using the Components
06:01 Creating Example Objects
06:44 Outro

Mostre mais

 0 Comentários sort   Ordenar por


A seguir