Introdução

Esta série é uma coleção de boas práticas para ajudar você a trabalhar eficientemente com Godot.

Godot allows for a great amount of flexibility in how you structure a project's codebase and break it down into scenes. Each approach has its pros and cons, and they can be hard to weigh until you've worked with the engine for long enough.

Há sempre muitas formas para construir seu código e resolver problemas específicos de programação. Seria impossível de cobrir todos eles aqui.

That is why each article starts from a real-world problem. We will break down each problem in fundamental questions, suggest solutions, analyze the pros and cons of each option, and highlight the best course of action for the problem at hand.

You should start by reading Applying object-oriented principles in Godot. It explains how Godot's nodes and scenes relate to classes and objects in other Object-Oriented programming languages. It will help you make sense of the rest of the series.

Nota

The best practices in Godot rely on Object-Oriented design principles. We use tools like the single responsibility principle and encapsulation.