godot-csharp

Solid

Godot C# programming skill for .NET integration, scripting patterns, and performance optimization.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
87
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Godot C# Skill C# programming for Godot Engine development. ## Overview This skill provides capabilities for implementing game logic using C# in Godot, leveraging .NET integration. ## Capabilities ### C# Integration - Node class inheritance - Attribute-based exports - Signal definitions - Callable system ### .NET Features - NuGet packages - Async/await patterns - LINQ queries - .NET libraries ### Interoperability - Call GDScript from C# - Expose to GDScript - Handle Variant types - Manage signals ### Performance - Struct usage - Memory management - Object pooling - Span usage ## Prerequisites - Godot 4.0+ with .NET support - .NET SDK installed - C# IDE (VS Code, Rider) ## Usage Patterns ### Node Script ```csharp using Godot; public partial class Player : CharacterBody2D { [Export] public float Speed { get; set; } = 200f; [Signal] public delegate void HealthChangedEventHandler(int newHealth); private int _health = 100; public override void _Ready() { // Initialize } public override void _PhysicsProcess(double delta) { var velocity = Vector2.Zero; velocity.X = Input.GetAxis("move_left", "move_right"); velocity.Y = Input.GetAxis("move_up", "move_down"); Velocity = velocity.Normalized() * Speed; MoveAndSlide(); } } ``` ### Signal Connection ```csharp button.Pressed += OnButtonPressed; // or button.Connect("pressed", Callable.From(OnButtonPressed)); ``` ## Best Practi...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills