Simplify Your Godot 4 Code: Inheritance vs Composition

Learn how to make your Godot 4 code cleaner by choosing between inheritance and composition in different scenarios. ๐ŸŽฎ

Simplify Your Godot 4 Code: Inheritance vs Composition
Bitlytic
687.8K views โ€ข Apr 26, 2023
Simplify Your Godot 4 Code: Inheritance vs Composition

About this video

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

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

687.8K

Likes

36.1K

Duration

6:59

Published

Apr 26, 2023

User Reviews

4.8
(137)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.