spritecook-generate-tilesets
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSpriteCook Generate Tilesets
SpriteCook 瓦片集生成
Use this skill for SpriteCook tileset generation. Pair it with for credits, manifests, safe downloads, and asset tracking.
spritecook-workflow-essentialsRequires: SpriteCook MCP server connected to your editor. Set up with or see spritecook.ai.
npx spritecook-mcp setup本技能用于SpriteCook瓦片集生成。搭配使用,可实现积分管理、清单维护、安全下载和资产追踪功能。
spritecook-workflow-essentials要求: 编辑器需连接SpriteCook MCP服务器。可通过进行设置,或查看spritecook.ai。
npx spritecook-mcp setupTools
工具
list_tileset_options
list_tileset_optionslist_tileset_options
list_tileset_optionsCall this when you need current supported perspectives, piece sets, tile sizes, elevations, edge modes, output dimensions, or defaults.
当你需要了解当前支持的视角、瓦片组件集、瓦片尺寸、高度、边缘模式、输出尺寸或默认设置时,调用此工具。
generate_tileset
generate_tilesetgenerate_tileset
generate_tilesetGenerate a game-ready tileset. The tool returns a job immediately by default; follow the returned and until canonical entries are ready.
poll.toolpoll.argumentsassets| Parameter | Type | Default | Description |
|---|---|---|---|
| string | required | Terrain/material request, e.g. |
| string | | |
| string | | |
| string | registry default | |
| int | registry default | Final tile size in pixels |
| string | registry default | |
| string | | |
| int | | Number of variations, 1-4 |
| string | null | Optional model override. Omit to use SpriteCook's tileset default |
| string[] | null | Optional hex color guidance, max 64 |
| bool | | Force the output toward |
| string[] | null | Optional forced hex palette, max 64 |
| string | null | Existing tileset asset to use as source/reference; tileset settings are inherited |
| string | null | Existing tileset asset to edit; tileset settings are inherited |
| string | null | Existing asset to use as visual style guide only |
| int | 0 | Optional bounded wait from 0-90 seconds before returning the polling contract |
reference_asset_idedit_asset_id生成可直接用于游戏的瓦片集。默认情况下,该工具会立即返回一个任务;请按照返回的和进行轮询,直到标准条目准备完成。
poll.toolpoll.argumentsassets| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| string | 必填 | 地形/材质需求,例如 |
| string | | |
| string | | |
| string | 注册表默认值 | |
| int | 注册表默认值 | 最终瓦片尺寸(像素) |
| string | 注册表默认值 | 支持的情况下可选 |
| string | | |
| int | | 变体数量,范围1-4 |
| string | null | 可选模型覆盖参数。省略则使用SpriteCook的瓦片集默认模型 |
| string[] | null | 可选十六进制颜色参考,最多64种 |
| bool | | 强制输出向 |
| string[] | null | 可选强制十六进制调色板,最多64种 |
| string | null | 用作源/参考的现有瓦片集资产;瓦片集设置将被继承 |
| string | null | 待编辑的现有瓦片集资产;瓦片集设置将被继承 |
| string | null | 仅用作视觉风格指南的现有资产 |
| int | 0 | 返回轮询协议前的可选等待时长,范围0-90秒 |
reference_asset_idedit_asset_idRecommended Defaults
推荐默认设置
- For top-down pixel autotiles, start with ,
style_mode="pixel",perspective="topdown",piece_set="15-piece",tile_size=32.edges="transparent" - For top-down inner-corner base tiles, use and keep
piece_set="17-piece-base".edges="transparent" - For side-view platformers, use ,
perspective="platformer",piece_set="autotile-16-set".edges="transparent" - For detailed top-down tilesets, use and call
style_mode="detailed"before choosing size/elevation.list_tileset_options - Use only when the user explicitly wants to compare models.
model
- 对于俯视像素自动瓦片,初始设置为、
style_mode="pixel"、perspective="topdown"、piece_set="15-piece"、tile_size=32。edges="transparent" - 对于俯视内角基础瓦片,使用并保持
piece_set="17-piece-base"。edges="transparent" - 对于侧视平台游戏,使用、
perspective="platformer"、piece_set="autotile-16-set"。edges="transparent" - 对于精细风格俯视瓦片集,使用,并在选择尺寸/高度前调用
style_mode="detailed"。list_tileset_options - 仅当用户明确要求对比模型时,才使用参数。
model
Reference Workflow
参考工作流
- When the user asks to use a saved tileset preset, use and
list_presets(mode="tileset", query=...)first, then map the returned tileset settings intoget_preset_settings.generate_tileset - If the user has a local image file path, use first, then pass the returned asset ID as
spritecook-upload-assets,reference_asset_id, oredit_asset_id.style_asset_id - If the user supplies a small data URL or raw base64 value, call first, then pass the returned asset ID as
import_asset,reference_asset_id, oredit_asset_id.style_asset_id - Use when the existing tileset should guide a new generation while preserving its tile size/layout.
reference_asset_id - Use when the user wants a direct change to an existing tileset.
edit_asset_id - Use as a style guide image when the image should affect only visual style, palette, proportions, and rendering, not tileset layout. The prompt does not need to repeat that the image is a style guide unless the user asks to emphasize a specific detail.
style_asset_id - When referencing or editing a tileset, do not change ,
style_mode,perspective,piece_set, ortile_size; SpriteCook inherits and locks those settings.elevation
- 当用户要求使用已保存的瓦片集预设时,先调用和
list_presets(mode="tileset", query=...),然后将返回的瓦片集设置映射到get_preset_settings中。generate_tileset - 如果用户提供本地图片文件路径,先调用,然后将返回的资产ID作为
spritecook-upload-assets、reference_asset_id或edit_asset_id传入。style_asset_id - 如果用户提供小型数据URL或原始base64值,先调用,然后将返回的资产ID作为
import_asset、reference_asset_id或edit_asset_id传入。style_asset_id - 当需要基于现有瓦片集引导新生成并保留其瓦片尺寸/布局时,使用。
reference_asset_id - 当用户想要直接修改现有瓦片集时,使用。
edit_asset_id - 当图片仅需影响视觉风格、调色板、比例和渲染,而不影响瓦片集布局时,使用作为风格指南图片。除非用户要求强调特定细节,否则提示语无需重复说明该图片是风格指南。
style_asset_id - 引用或编辑瓦片集时,请勿更改、
style_mode、perspective、piece_set或tile_size;SpriteCook会继承并锁定这些设置。elevation
Prompting
提示语规范
- Keep prompts short and material-focused: ,
snowy stone path,muddy swamp grass,volcanic rock.clean wooden floor - For single-surface tilesets, name one main material.
- For , name both surfaces clearly:
two_surfaces,grass and water.volcanic rock and lava - Avoid asking for labels, UI, characters, props, or scene composition inside the tileset.
- 提示语应简洁且聚焦于材质:例如、
snowy stone path、muddy swamp grass、volcanic rock。clean wooden floor - 对于单表面瓦片集,仅命名一种主要材质。
- 对于,需清晰命名两种表面:例如
two_surfaces、grass and water。volcanic rock and lava - 请勿在瓦片集中要求添加标签、UI界面、角色、道具或场景构图。
Output Handling
输出处理
- Follow the returned polling contract with until the job reaches a terminal state.
check_job_status - Save each returned in the project manifest or task notes.
asset_id - Use as the canonical downloadable tileset image.
sprite_url - Treat ,
url, andpixel_urlas compatibility aliases.raw_url - If a successful response contains , execute the supplied
warning.code="asset_output_unavailable"tool call.warning.recovery
- 使用按照返回的轮询协议进行检查,直到任务进入终止状态。
check_job_status - 将每个返回的保存到项目清单或任务笔记中。
asset_id - 使用作为可下载瓦片集图像的标准链接。
sprite_url - 将、
url和pixel_url视为兼容性别名。raw_url - 如果成功响应包含,请执行提供的
warning.code="asset_output_unavailable"工具调用。warning.recovery