Technical requirements
To follow the instructions in this chapter, use the project located in the 06.decoupling-objects-with-the-observer-pattern/01.start/
directory. If you encounter any confusion, errors, or bugs while following the instructions, refer to the files in the 06.decoupling-objects-with-the-observer-pattern/02.finished/
folder. Don’t forget to report any issues on the repository’s issue tracker through this link: https://github.com/PacktPublishing/Game-Development-Patterns-with-Godot-4/issues.
If you haven’t downloaded the repository yet, you can get it from the following link: https://github.com/PacktPublishing/Game-Development-Patterns-with-Godot-4.
With that said, let’s start exploring the Observer pattern, its core functionalities, what it fundamentally solves, and how people usually implement it. It’s important to understand its usual implementation so that we understand what’s happening behind Godot’s built...