godot-dev-guide
Installation
SKILL.md
Godot Dev Guide Skill
Godot 4.x 遊戲開發完整指南,專為 AI 輔助開發設計。
核心原則
1. 文件格式差異(最重要!)
.gd → GDScript 程式碼(完整語言)
.tscn → 場景序列化(嚴格格式,非 GDScript)
.tres → 資源序列化(嚴格格式,非 GDScript)
⚠️ AI PITFALL:混淆 GDScript 與資源格式
# ❌ WRONG in .tres/.tscn
script = preload("res://script.gd")
var items = [1, 2, 3]