What problem does it solve?
This Skill provides guidance and best practices for writing clean, performant, and maintainable GDScript code in the Godot game engine, helping developers avoid common pitfalls and improve code quality.
Core Features & Use Cases
- Static Typing: Enforces type safety for better performance and error detection.
- Annotations: Demonstrates effective use of
@export, @onready, @tool, and @rpc.
- Signal Patterns: Illustrates modern, typed signal declarations, connections, and emissions.
- Coroutines &
await: Explains how to use await for asynchronous operations and delays.
- Style Conventions: Provides clear guidelines on member ordering, docstrings, and naming.
- Collections & Resource Loading: Offers best practices for arrays, dictionaries, and efficient resource management.
- Anti-Patterns: Highlights common mistakes to avoid in GDScript development.
- Use Case: A Godot developer struggling with complex signal logic or performance issues in their GDScript can consult this Skill to learn idiomatic patterns and best practices.
Quick Start
Show me examples of using static typing in GDScript.