925236118/alphaagent/godot-ecs-component
Claude Code and agent skill by 925236118/alphaagent
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Godot 4 ECS实体组件系统模式,包含组件化设计、数据与逻辑分离、组件通信。
Install
npx vskill@latest install 925236118/alphaagent/godot-ecs-componentSKILL.md
Godot ECS 组件系统设计
概述
ECS(Entity Component System)是一种面向数据的架构模式,将游戏对象拆分为 Entity(实体)、Component(组件)和 System(系统)三个部分。在 Godot 中,我们通过组合 Node 和 Resource 实现 ECS 模式。
1. 架构设计
1.1 组件层级结构
1.2 核心组件示例
2. Hitbox 与 Hurtbox 系统
2.1 HitboxComponent
2.2 HurtboxComponent
3. 组件场景结构
4. 组件设计原则
| 原则 | 说明 | |
|---|---|---|
| 单一职责 | 每个组件只负责一个功能 | |
| 松耦合 | 组件通过信号通信,不直接依赖 | |
| 可复用 | 同一组件可挂载到不同实体 | |
| 数据分离 | 数据存储在 Resource 中 |
5. 数据资源模式
6. 设计模式总结
| 模式 | 应用场景 | |
|---|---|---|
| 组合模式 | Entity 通过组合组件构建 | |
| 观察者模式 | 组件通过信号解耦通信 | |
| 资源模式 | 数据存储在 Resource 中便于序列化 | |
| 外观模式 | Entity 提供统一接口访问组件 |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingaddons/agent/skills/default_skills/godot-ecs-component/SKILL.md
Popularity
- Repository stars
- 103
- Repository forks
- 14
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/925236118/alphaagent/godot-ecs-component)