How You Can Easily Make Your Code Simpler in Godot 4

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. Sprout Lands by Cup Nooble (The art I’m using): Music in the outro: 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
Back to Top