filmov
tv
Game Programming Patterns in Godot: The Singleton Pattern (Godot Autoload)

Показать описание
(Disclosure: As an Amazon Associate I earn from qualifying purchases.)
In this Godot tutorial, I will explain to you what is the Singleton Pattern and how can we leverage it via the Autoload feature in the Godot Game Engine. The Singleton Pattern can be used to have a unique instance of a given class, thus enabling you to keep the state of any component between scene changes. This pattern is implemented via Godot Autoload, which is the concrete way for the engine to deal with this game design pattern.
🔔 Subscribe:
Subscribe to my channel to see more videos like this:
📖 Useful resources:
- More information about Godot Autoload in the official Godot Game Engine documentation:
- Assets used in this tutorial:
🔵 Follow me:
Find out about my latest videos and publications:
⏳ Timecodes:
00:00 - Introduction on this Godot tutorial
01:43 - The Singleton Pattern
03:54 - Create a Godot Singleton with Godot Autoload
05:38 - Conclusion
---
Music credits:
Track: Alexi, Action, Infraction- Witch's Whispers
Music provided by Infraction No Copyright Music
Комментарии