Command Palette

Search for a command to run...

Назад к скиллам
скилл № 79000

godot

Use when the user asks about Godot 4, GDScript projects, scenes and nodes, Godot C#, GDExtension, Jolt physics in Godot, Godot export templates or Godot…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить godot в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Godot Deep Engineering Guide

Purpose

Godot is a free, open-source game engine built around a scene-tree of Nodes, a first-class editor, and a friendly scripting language (GDScript) plus optional C#, C++, and Rust via GDExtension. Its modular renderer supports Forward+, Mobile, and Compatibility backends.

Agent Protocol

Trigger

"godot", "godot 4", "gdscript project", "godot scenes", "godot export", "godot c#", "gdextension".

Input Context

  • Godot version (4.x minor)
  • Language (GDScript, C#, GDExtension)
  • Target platforms and renderer

Output Artifact

GDScript/C# code, scene structure or project settings. No file unless requested.

Response Format

Godot: {4.x}  Renderer: {Forward+ | Mobile | Compatibility}
Change: {what and why}
Code: {snippet}
Verify: {profiler / monitors}

1. Engine Architecture

Godot SceneTree
  Scene (Node tree)
    Node (base: name, owner, groups, tree refs)
      Control    -> UI (UI Toolkit equivalent)
      Node2D     -> 2D gameplay
      Node3D     -> 3D gameplay
      ... custom scripts attach via GDScript/C#/GDExtension
  MainLoop -> SceneTree tick: process(delta) -> physics_process(delta)

1.1 Nodes vs _process

extends Node

func _ready(): pass            # once when entering tree
func _process(delta): pass     # every rendered frame
func _physics_process(delta): pass  # fixed 60Hz by default
func _input(event): pass       # input events BEFORE process
func _unhandled_input(event): pass # input not consumed by UI

Rules:

  • Move physics bodies in _physics_process. For smooth visuals at high refresh rates enable physics interpolation (physics/common/physics_interpolation, 2D since 4.3, 3D since 4.4) instead of hand-interpolating in _process.
  • Set process_mode = PROCESS_MODE_DISABLED for nodes that don't act per-frame.

1.2 Autoload (Singletons)

Project Settings -> Autoload: one scene/script loaded globally. Use autoload game manager, audio bus, settings. Alternative to Object.get_node('/root/GameManager').

2. The Scene System

  • A scene is a reusable node subtree, loaded with preload/load as a PackedScene and created with instantiate() (Godot 3's instance() no longer exists).
  • Composition over inheritance: parent/child node relationships + exported signals.
  • @export var speed: float = 10.0 exposes editable properties to the inspector.

2.1 Pattern: Factories via PackedScene

const Bullet = preload("res://scenes/bullet.tscn")
func fire():
    var b = Bullet.instantiate()
    b.position = muzzle.global_position
    b.velocity = Vector2(speed, 0)  # bullet.gd declares `var velocity: Vector2`
    get_tree().current_scene.add_child(b)

2.2 Scene Organization

  • Splitting UI, gameplay, HUD in separate scenes.
  • get_node/$ access lazily; prefer @onready var to cache paths.
  • Grouping: add_to_group("enemies"), iterate with get_tree().get_nodes_in_group("enemies").

3. Scripting: GDScript vs C# vs GDExtension

Option Use case
GDScript Default: rapid iteration, tight editor integration, Python-like
C# Teams familiar with .NET; heavier runtime; good for tool-heavy projects
GDExtension (C++/Rust) Engine-critical hot loops; custom servers; portability

3.1 GDScript Rules

  • Typed where possible: @export var speed: float. Untyped variables run slower.
  • Hot loops: avoid string parsing, dynamic typing; use const.
  • for i in count: prefer typed loop counters.
  • Signal-based communication instead of polling.
  • await for async (timers, HTTP, animations).

4. Rendering

4.1 Backends

Backend Use
Forward+ Desktop default (Vulkan, D3D12 on Windows, Metal on Apple); clustered lighting, SSAO, SSR, SDFGI, volumetric fog
Mobile Mobile and low-end desktop (Vulkan/Metal/D3D12); per-mesh light limits, no SDFGI/volumetric fog
Compatibility OpenGL 3.3 / OpenGL ES 3.0 / WebGL 2; required for web exports and old hardware

4.2 2D Rendering

  • CanvasItems with textures; use Texture2D, AtlasTexture, AnimatedSprite2D.
  • y_sort_enabled = true (CanvasItem) for top-down sorting.
  • Use Parallax2D and TileMapLayer for levels.
  • 2D lights cost per lit item; use CanvasItemMaterial with light_mode = LIGHT_MODE_UNSHADED on items that should ignore them.

4.3 3D Rendering

  • Nodes: MeshInstance3D, Camera3D, DirectionalLight3D.
  • Standard materials: StandardMaterial3D, or ShaderMaterial with gdshader.
  • GPU particles via GPUParticles3D / 2D.
  • Use LightmapGI for static GI; keep dynamic lights under a handful on mobile.

4.4 Shaders (Godot Shader Language)

shader_type spatial;
uniform vec4 tint : source_color = vec4(1.0);
// Godot 4: SCREEN_TEXTURE was removed; declare a sampler with a hint instead.
uniform sampler2D screen_tex : hint_screen_texture, filter_linear_mipmap;
void fragment() {
    ALBEDO = texture(scr
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл godot?

Use when the user asks about Godot 4, GDScript projects, scenes and nodes, Godot C#, GDExtension, Jolt physics in Godot, Godot export templates or Godot performance. Produces Godot 4 project structure, gameplay code and export settings. Not for low-level server APIs and deep optimisation (use godot-gdscript) or Unity (use unity).

Как установить скилл godot?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить godot с