Godot 4 · AnimatedSprite2D
@onready var actor: AnimatedSprite2D = $AnimatedSprite2D
func _ready() -> void:
actor.sprite_frames = preload("res://adapters/godot/frames.tres")
actor.play("attack")Godot 4 工作流指南
免登录试玩游戏模板,查看 Godot 4 SpriteFrames 的导入步骤与供后续接入参考的 MCP 配置示例。
codex mcp add game-studio --url https://spritedash.com/mcp --bearer-token-env-var GAME_STUDIO_TOKEN
示例展示端点开放后如何连接 Codex、Claude Code 或 Cursor,只授权客户端需要的项目和工具。
指南介绍如何为动作报价、查看任务状态,并将 Godot 4 选为导出目标。
如果已有 Godot 导出 ZIP,把 frames.tres、贴图和 play.gd 解压到项目,应用到 AnimatedSprite2D。
| 目标 | 交付文件 | 使用方法 |
|---|---|---|
| 通用精灵表 | atlas.json · sheet.png · frames/ · audio/ | 帧边界、锚点与时长 |
| Phaser 3 | texture-atlas.json · sheet.png | 通过 this.load.atlas() 加载 |
| Godot 4 | frames.tres · sheet.png · play.gd | 导入 AnimatedSprite2D |
| 静态网页游戏 | whitebox_web · game-config.json · asset-manifest.json | 解压后通过静态 HTTP 服务运行 |
@onready var actor: AnimatedSprite2D = $AnimatedSprite2D
func _ready() -> void:
actor.sprite_frames = preload("res://adapters/godot/frames.tres")
actor.play("attack")公开抢先体验期间 MCP 暂未开放。下方示例介绍端点开放后如何用限定权限的密钥连接 Streamable HTTP。
get_accountRead the current plan, both credit pools and entitlements. Free. Call at most once per session.
projectsList, get or whitebox_get with read scope. Create or whitebox_save with generate scope. Creation needs idempotencyKey; whitebox saves use expectedRevision. Free.
set_style_lockSave a new default style lock version with palette and project-owned reference images. Free.
request_uploadRequest a short-lived PUT ticket for a project-owned image or audio file. Free. Send binary bytes, not base64 JSON.
create_subjectCreate a character or a 2D VFX subject. Prompt generation requires a matching quote; registering an uploaded image is free. Use an idempotency key.
quote_taskQuote an existing Studio task input. Free. Quotes expire in five minutes; use the exact quoted input and a fresh idempotency key.
generate_animationQueue a character action with a matching quote and idempotency key. Paid generation consumes quoted credits.
generate_vfxQueue a weapon slash, explosion, hit sparks or magic clip with a matching quote and idempotency key. Supports luma_alpha. Uses quoted credits.
generate_sfxQueue SFX generation or register uploaded audio. Uses the matching quote and idempotency key; upload registration is free.
get_task_statusRead one to twelve project-owned tasks. Free. Optionally wait up to 15 seconds; respect retryAfterMs for pending work.
reslice_or_bind_sfxReslice an existing video, or CAS-save frame bindings and mix. Both are free. Use an idempotency key.
export_assetsQueue 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 mcp add game-studio --url https://spritedash.com/mcp --bearer-token-env-var GAME_STUDIO_TOKENclaude mcp add --transport http game-studio https://spritedash.com/mcp --header "Authorization: Bearer $GAME_STUDIO_TOKEN"{
"mcpServers": {
"game-studio": {
"url": "https://spritedash.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_STUDIO_KEY"
}
}
}
}公开 MCP 端点暂未开放。配置示例用于了解后续连接素材工作流的方式。
MCP 为素材工作流设计,资源需要在你自己的 Godot 项目中导入。
Godot 4 适配器包含 frames.tres、贴图和应用导出锚点的 play.gd。
抢先体验期间可公开试玩,在线生成、MCP 和收款暂未开放。