dashiming

Godot Game Claw Bridge

开发编程v1.5.0
作者:dashiming更新于 2026-05-17共 5 个版本 · 最新版本发布于 2026-03-14godot-bridge@clawhub_dashiming/godot-bridge
代码生成脚本工具#Game#Health

据 AlphaMoat 统计,截至 2026-09,Godot Game Claw Bridge 累计下载 2,812 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 3,860 位,在「开发编程」分类(577 个)中排名第 487 位。

累计安装
301
累计下载
2,812
星标
3
全站排名
#3,860
全站前 77% · 「开发编程」前 85%
平台累计安装累计下载星标评论
ClawHub ↗431,6391-
SkillHub ↗3012,8123—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

演示项目、场景、脚本、关卡、界面及生命、背包、存档、输入、对话和任务组件。生成文件需在临时或明确获准工作区审查。卡片指出路径与 shell 调用风险;修复前避免不可信参数及打开不可信项目目录。

资料发布于 2026-10-27

可以用来做什么

  • 规划 Godot 原型

什么时候用

  • 可在隔离环境审查生成游戏文件时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

展示获准临时工作区的项目及组件计划,先不运行命令。

月度数据趋势

累计下载2,812
3691,6812,9932026-03 · 累计下载 5502026-05 · 累计下载 1,0972026-06 · 累计下载 1,2682026-07 · 累计下载 1,6002026-08 · 累计下载 1,9782026-09 · 累计下载 2,81226-0326-09
星标3
1232026-03 · 星标 12026-05 · 星标 22026-06 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,812—3
2026-081,978+23.6%3
2026-071,600+26.2%3
2026-061,268+15.6%3
2026-051,097—2
2026-03550—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.9 KB · ClawHub v1.5.0
---
name: godot-bridge
description: "Godot 4.x Project Generator CLI. Create 2D/3D games with 80+ CLI commands: projects, scenes, scripts, levels, UI (menu/HUD/dialog/inventory), game components (health/inventory/save/input/dialogue/quest), physics (rigid/kinematic/area/joint), particles, animations, materials, and export to HTML5/Windows/macOS/Linux/Android/iOS. Perfect for AI-driven game development, rapid prototyping, and automated workflows."
metadata:
  openclaw:
    emoji: 🎮
    requires:
      bins: ["node"]
---
展开全部(共 170 行)
# Godot Bridge - Project Generator CLI v3.0

Generate complete Godot 4.x projects with scenes, scripts, and game components.

## Quick Start

```bash
# Create project
clawbridge init MyGame

# Enter project
cd MyGame

# Add components
clawbridge component health --type health
clawbridge component inventory --type inventory

# Add objects
clawbridge label "Score: 0" --x 50 --y 30
clawbridge box --x 200 --y 150
clawbridge camera --x 640 --y 360

# Open in Godot
clawbridge open
```

## Commands

### Project
```bash
clawbridge init MyGame              # Basic 2D project
clawbridge init MyGame --3d        # 3D project
clawbridge init MyGame --template rpg   # RPG template
```

### Generate
```bash
clawbridge scene Main       # Generate scene
clawbridge script Player    # Generate script
clawbridge level Level1     # Generate level
```

### Game Components
```bash
# Health System
clawbridge component health --type health

# Inventory System
clawbridge component inventory --type inventory

# Save/Load System
clawbridge component save_system --type save

# Input System
clawbridge component input_system --type input

# Dialogue System
clawbridge component dialogue --type dialogue

# Quest System
clawbridge component quest --type quest
```

### Objects (add to scene)
```bash
clawbridge label "Hello" --x 100 --y 50
clawbridge button "Click" --x 200
clawbridge box --x 100 --y 100
clawbridge sphere --x 200
clawbridge camera --x 640 --y 360
clawbridge light --x 100
clawbridge particles --amount 50
clawbridge character
```

## Generated Project Structure

```
MyGame/
├── project.godot
├── icon.svg
├── scenes/
│   └── main.tscn
├── scripts/
│   ├── main.gd
│   ├── game_manager.gd
│   └── [your components]
├── levels/
├── assets/
└── prefabs/
```

## Game Components

### Health System
- `take_damage(amount)` - Apply damage
- `heal(amount)` - Heal entity
- `is_alive()` - Check if alive
- Signals: `health_changed`, `died`

### Inventory System
- `add_item(name)` - Add item
- `remove_item(name)` - Remove item
- `has_item(name)` - Check item
- `get_item_count(name)` - Get quantity

### Save/Load System
- `save_game()` - Save to disk
- `load_game()` - Load from disk
- Auto-saves player stats and current level

### Input System
- `get_direction()` - Get left/right input (-1 to 1)
- `is_jump_pressed()` - Check jump

### Dialogue System
- `show(lines)` - Start dialogue with array of strings
- `next()` - Advance to next line
- Signals: `line_displayed`, `dialogue_ended`

### Quest System
- `start_quest(name, target)` - Start quest
- `update_quest(name, progress)` - Update progress
- `complete_quest(name)` - Complete quest
- Signals: `quest_started`, `quest_completed`

## Options

| Option | Description |
|--------|-------------|
| --type | Component type |
| --template | Project template |
| --x, --y | Position coordinates |
| --3d | Create 3D project |

## Example: Complete RPG

```bash
# Create RPG project
clawbridge init MyRPG --template rpg

# Add game systems
clawbridge component health --type health
clawbridge component inventory --type inventory
clawbridge component quest --type quest
clawbridge component save_system --type save
clawbridge component dialogue --type dialogue

# Add UI
clawbridge label "HP: 100" --x 20 --y 20
clawbridge label "Gold: 0" --x 20 --y 50

# Open in Godot
clawbridge open
```

## License

MIT

「开发编程」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。