How diogosabec/dev-in-blocks works
Main Components
• Game Scenes – Represent the different game scenes (e.g., MainMenu, Tutorial, Atividade 1-6, SelecionarAtividade) as separate components that handle various gameplay aspects.
• Game Logic & Scripts – Include a component or a set of components for the C# scripts located in Assets/Scripts. These control behaviors (e.g., AdicionarBlocos, Gerenciamento, ExecutarPrograma) and the assembly of the visual programming blocks.
• Visual Programming Blocks – Detail the “Blocos” that the game uses to visually represent programming constructs (conditions, loops, math operations, etc.). These are implemented as prefabs in Assets/Objetos/Blocos and have specific interactions.
• Editor Extensions – Acknowledge the customization for the Unity editor (found in Assets/Editor and Assets/PlayerPrefsEditor). This represents tools that improve development workflows by managing PlayerPrefs and providing dialog extensions.
• Plugins & External Tools – Mark plugins such as the “AnotherFileBrowser” plugin (Assets/Plugins/AnotherFileBrowser) that the project integrates for file management.
• Text & UI Assets – Represent external UI support like TextMesh Pro, which assists in rendering text cleanly and attractively.
Relationships and Data Flow
• That the Unity Engine core loads Scenes, which in turn instantiate prefabs (visual programming blocks) and execute Game Logic.
• Link Plugins to the game’s UI or file management layers, showing data flow from user interactions to the file browser components.
Architectural Patterns & Design Choices
• MVC-like Separation: Illustrate a separation between the user interface (Scenes, prefabs, and UI libraries like TextMesh Pro) and the underlying game logic (C# scripts, controllers like GerenciarLoja and GerenciarTutorial).
• Modular Editor Enhancements: Show that editor-specific tools (located in Assets/Editor and PlayerPrefsEditor) act as a distinct module, used during development and for debugging purposes.
• Reusability via Prefabs: Emphasize that visual programming components are built as reusable prefabs, promoting a composition-over-inheritance approach typical in Unity projects.
• Data Persistence: Highlight the use of PlayerPrefs (and its custom editor scripts) as the mechanism for storing user or configuration data.