可玩示例与工作流指南

用 2D 素材做 Vibe Coding 游戏

在 2D 模板里试玩一个完整动作,再按指南为自己的游戏规划精灵、特效和音效。

MCP 配置示例 · 抢先体验横向滑动查看命令
codex mcp add game-studio --url https://spritedash.com/mcp --bearer-token-env-var GAME_STUDIO_TOKEN
像素风横版训练场景

工作流程

  1. 试玩一个完整动作

    用模板检验一个角色、一个特效和一个音效如何配合,再准备完整动作集。

  2. 规划客户端权限

    MCP 开放后,使用限定项目的密钥,并限制工具权限、单任务积分和总积分。

  3. 规划引擎交付

    按指南选择适合游戏的精灵素材格式,或查看完整浏览器白盒模板的静态 ZIP 结构。

引擎导出规格

引擎导出规格
目标交付文件使用方法
通用精灵表atlas.json · sheet.png · frames/ · audio/帧边界、锚点与时长
Phaser 3texture-atlas.json · sheet.png通过 this.load.atlas() 加载
Godot 4frames.tres · sheet.png · play.gd导入 AnimatedSprite2D
静态网页游戏whitebox_web · game-config.json · asset-manifest.json解压后通过静态 HTTP 服务运行

在游戏里加载

Godot 4 · AnimatedSprite2D

@onready var actor: AnimatedSprite2D = $AnimatedSprite2D

func _ready() -> void:
    actor.sprite_frames = preload("res://adapters/godot/frames.tres")
    actor.play("attack")

12 个工作台 MCP 工具

公开抢先体验期间 MCP 暂未开放。下方示例介绍端点开放后如何用限定权限的密钥连接 Streamable HTTP。

get_account

Read the current plan, both credit pools and entitlements. Free. Call at most once per session.

projects

List, get or whitebox_get with read scope. Create or whitebox_save with generate scope. Creation needs idempotencyKey; whitebox saves use expectedRevision. Free.

set_style_lock

Save a new default style lock version with palette and project-owned reference images. Free.

request_upload

Request a short-lived PUT ticket for a project-owned image or audio file. Free. Send binary bytes, not base64 JSON.

create_subject

Create a character or a 2D VFX subject. Prompt generation requires a matching quote; registering an uploaded image is free. Use an idempotency key.

quote_task

Quote an existing Studio task input. Free. Quotes expire in five minutes; use the exact quoted input and a fresh idempotency key.

generate_animation

Queue a character action with a matching quote and idempotency key. Paid generation consumes quoted credits.

generate_vfx

Queue a weapon slash, explosion, hit sparks or magic clip with a matching quote and idempotency key. Supports luma_alpha. Uses quoted credits.

generate_sfx

Queue SFX generation or register uploaded audio. Uses the matching quote and idempotency key; upload registration is free.

get_task_status

Read one to twelve project-owned tasks. Free. Optionally wait up to 15 seconds; respect retryAfterMs for pending work.

reslice_or_bind_sfx

Reslice an existing video, or CAS-save frame bindings and mix. Both are free. Use an idempotency key.

export_assets

Queue an Atlas-validated generic, Phaser 3 and Godot 4 ZIP, or a standalone whitebox_web game ZIP using whiteboxConfigId. Free. Use an idempotency key; poll with get_task_status and download with export scope.

Codex

codex mcp add game-studio --url https://spritedash.com/mcp --bearer-token-env-var GAME_STUDIO_TOKEN

Claude Code

claude mcp add --transport http game-studio https://spritedash.com/mcp --header "Authorization: Bearer $GAME_STUDIO_TOKEN"

Cursor

{
  "mcpServers": {
    "game-studio": {
      "url": "https://spritedash.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_STUDIO_KEY"
      }
    }
  }
}

常见问题

哪些客户端有配置示例?

指南涵盖 Codex、Claude Code 和 Cursor。公开抢先体验期间 MCP 暂未开放。

MCP 客户端能跳过报价消耗积分吗?

生成流程需要匹配报价,服务端会检查密钥限制。目前在线生成尚未开放。

两种导出格式有什么区别?

静态白盒 ZIP 的目标是作为独立浏览器模板运行;精灵素材包提供可供现有游戏导入的文件。

查看工作流程

做出第一个可玩的动作

抢先体验期间可公开试玩,在线生成、MCP 和收款暂未开放。

免费打开工作台