925236118/alphaagent/godot-interactive-system
Claude Code and agent skill by 925236118/alphaagent
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Godot 4 可交互组件设计,包含InteractiveComponent代理组件、NPC对话、区域触发。
Install
npx vskill@latest install 925236118/alphaagent/godot-interactive-systemSKILL.md
Godot 可交互组件设计
概述
可交互组件系统用于实现玩家与游戏世界中各种对象的交互,如 NPC 对话、场景切换、商店等。系统采用代理模式,通过 InteractiveComponent 统一管理交互检测和事件分发。
1. 架构设计
1.1 整体架构
1.2 可交互对象类型
| 类型 | 实现方式 | 触发方式 | |
|---|---|---|---|
| NPC 对话 | npc_base.gd | 按键触发 | |
| 关卡出口 | interactable_level_exit.gd | 按键触发 | |
| 商店 | 自定义 player_interact | 按键触发 | |
| 门 | 自动检测 | 区域进入自动触发 |
2. 交互检测机制
2.1 玩家端配置
Talk Area 配置:
2.2 进入/离开交互区域
2.3 交互触发
3. InteractiveComponent 代理组件
3.1 核心实现
场景配置:
3.2 代理模式优势
InteractiveComponent可复用于不同对象- 业务逻辑放在
agent中,便于维护 - 可以动态切换
agent改变交互行为
4. 常见交互类型
4.1 NPC 对话交互
4.2 关卡出口交互
普通出口 - 进入即触发:
可交互出口 - 需按键触发:
4.3 商店交互
4.4 门交互(自动触发)
5. 交互对象场景配置
6. 设计模式总结
| 模式 | 应用场景 | |
|---|---|---|
| 代理模式 | InteractiveComponent 转发交互请求给 agent | |
| 观察者模式 | talk_target 跟踪当前交互目标 | |
| 状态机 | NPC 行为状态管理 | |
| 导演模式 | GameDirector 统一管理游戏流程 |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingaddons/agent/skills/default_skills/godot-interactive-system/SKILL.md
Popularity
- Repository stars
- 103
- Repository forks
- 14
- 7-day trend score
- 0
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-interactive-system)