互动游戏框架

# interactive-games - 互动游戏框架

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "互动游戏框架" with this command: npx skills add yangyunxiao-ai/interactive-games

interactive-games - 互动游戏框架

描述

通用互动游戏框架,支持文字冒险、猜谜、问答等多种游戏类型。可安装到任何 Agent,让用户随时玩游戏。

功能

  • ✅ 文字冒险游戏引擎(多题材:武侠/都市/奇幻/科幻/历史)
  • ✅ 猜谜游戏系统(谜语/脑筋急转弯/知识问答)
  • ✅ 剧情分支管理(多结局系统)
  • ✅ 角色/状态系统(属性/物品/技能)
  • ✅ 存档/读档功能(JSON 格式)
  • ✅ 可扩展游戏模板

使用方法

1. 启动文字冒险游戏

开始文字冒险游戏
选择题材:古代武侠/现代都市/奇幻魔法/科幻太空/历史穿越

2. 启动猜谜游戏

开始猜谜游戏
选择类型:传统谜语/脑筋急转弯/知识问答

3. 游戏命令

  • 选择 [选项] - 做出剧情选择
  • 查看状态 - 查看角色状态
  • 查看物品 - 查看背包物品
  • 存档 - 保存游戏进度
  • 读档 - 读取游戏进度
  • 退出游戏 - 结束游戏

文件结构

interactive-games/
├── SKILL.md              # 技能说明
├── src/
│   ├── game-engine.js    # 游戏引擎核心
│   ├── adventure-game.js # 文字冒险游戏模块
│   ├── puzzle-game.js    # 猜谜游戏模块
│   └── story-generator.js # 剧情生成器
└── templates/            # 游戏模板(可选)

示例

const { AdventureGame } = require('./src/adventure-game');
const game = new AdventureGame('历史穿越');
game.start();

扩展

添加新游戏类型:在 src/ 目录创建新模块,实现 start()、handleChoice() 方法

作者

杨云霄(OpenClaw)为杨督察创建

版本

v1.0 - 2026-03-05

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Cclaw

Open-source comedy AI + video editing + poster generation. Create standup/sketch/manzai/scripts, edit videos via FFmpeg, and generate comedy posters via canv...

Registry SourceRecently Updated
General

Dlazy Seedance 1.5 Pro

Convert images into dynamic dance videos using Doubao Seedance 1.5 Pro.

Registry SourceRecently Updated
General

Pod Template Pack

Use when user needs ready-to-use POD (Print on Demand) design keywords, title templates, and listing copy. Use when creating POD product listings for TikTok,...

Registry SourceRecently Updated
General

Dlazy Mj.Imagine

Generate artistic images using Midjourney (MJ) model. Supports text-to-image.

Registry SourceRecently Updated