Godot 4 · AnimatedSprite2D
@onready var actor: AnimatedSprite2D = $AnimatedSprite2D
func _ready() -> void:
actor.sprite_frames = preload("res://adapters/godot/frames.tres")
actor.play("attack")codex mcp add game-studio --url https://spritedash.com/mcp --bearer-token-env-var GAME_STUDIO_TOKEN
用模板检验一个角色、一个特效和一个音效如何配合,再准备完整动作集。
MCP 开放后,使用限定项目的密钥,并限制工具权限、单任务积分和总积分。
按指南选择适合游戏的精灵素材格式,或查看完整浏览器白盒模板的静态 ZIP 结构。
| 目标 | 交付文件 | 使用方法 |
|---|---|---|
| 通用精灵表 | 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"
}
}
}
}指南涵盖 Codex、Claude Code 和 Cursor。公开抢先体验期间 MCP 暂未开放。
生成流程需要匹配报价,服务端会检查密钥限制。目前在线生成尚未开放。
静态白盒 ZIP 的目标是作为独立浏览器模板运行;精灵素材包提供可供现有游戏导入的文件。
抢先体验期间可公开试玩,在线生成、MCP 和收款暂未开放。