# AI游戏图标生成：一次画出一整套

> 用 AI 生成游戏图标：一次调用就是一整张 64 个图标的图集，你点名的图标先画，其余按你的描述补齐。每个图标都切成单独的文件，记进游戏读取的同一份记录里，之后新画的图集也会照着上一张对齐风格，描边粗细、光线和材质从头到尾都保持一致。

- URL: https://tyrbo.ai/zh-cn/youxi-tubiao-shengcheng
- Title: AI游戏图标生成：一张图出64个风格统一的图标
- Language: 简体中文 (zh-CN)
- Updated: 2026-11-26
- In other languages: [English](https://tyrbo.ai/game-icon-generator), [Deutsch](https://tyrbo.ai/de/game-icons-erstellen), [Español](https://tyrbo.ai/es/generador-de-iconos-para-juegos), [Français](https://tyrbo.ai/fr/generateur-d-icones-de-jeu), [Português (Brasil)](https://tyrbo.ai/pt-br/gerador-de-icones-para-jogos), [日本語](https://tyrbo.ai/ja/gemu-aikon-sakusei), [한국어](https://tyrbo.ai/ko/geim-aikon-saengseong)

一个一个单独画出来的图标，放在一起总会走样：剑的描边比盾牌粗，药水的光从另一边打过来。`asset icons` 从来不单独画一个图标。每次调用都是一张图里排着 64 个图标，所以整套出自同一只手、同一种光、同一种材质。

每个图标切成自己的文件，加进 `ui/ui-icons.json`。这份文件是你游戏里所有图标的唯一记录，之后再画的每一张图集，都以它为准去对齐风格。

Tyrbo 应用也支持简体中文：它会跟随你的浏览器语言，你也可以在设置中更改。

把这段发给你的编程助手

```
Set up Tyrbo asset gen for me so I can make my game's art, sprite sheets, animated characters, 3D models, UI and sound from here, all in one look.
1. Install the CLI: run `npm install -g @tyrbo/asset` (Node 20.11 or later).
2. Add the skill: in Claude Code, run `claude plugin marketplace add https://cdn.jsdelivr.net/npm/@tyrbo/asset/.claude-plugin/marketplace.json`, then `claude plugin install tyrbo-asset@tyrbo`. In another MCP client, add the MCP server `npx -y @tyrbo/asset mcp`. In any other agent, read `asset --help` before the first call.
3. Check it, free: in an empty scratch folder, not my game's, run `asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mock`. It needs no key and writes stand-in files there.
4. Authenticate: ask me to make an asset key at https://app.tyrbo.ai/?from=/asset-generator#/settings/assets (Settings, Asset gen) and to run `asset login` in my own terminal, pasting the key there. Never ask me for the key in chat, and never run `asset login` yourself. Once I have, run `asset spend` to see it works.
Once that's done, let me know when it's ready.
```

[获取素材密钥](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)[查看文档（英文）](https://tyrbo.ai/asset-generator/docs)

## 要运行的命令

```
asset ui "warm carved wood and brass" --vertical-phone
asset icons "pirate treasure" --names doubloon,parrot,compass
asset icons "cursed relics of a sunken temple" --set relics
asset icons "fruit pieces and boosters" --set pieces
```

## 先画你点名的，再补齐一整套

用 `--names` 传进去的名字最先画。64 格里剩下的，从你的描述挑中的那一组里来，或者从 `--set` 指定的那一组里来：

- **pieces**：三消游戏的棋子、特殊块、障碍和道具；
- **cards**：卡牌游戏的属性、花色和效果；
- **relics**：肉鸽游戏的遗物和物品；
- **general**：拾取物、装备、技能和菜单标记。

记录里已经有的名字会跳过，然后其他几组依次补上，所以每次调用添的都是游戏还缺的图标。如果你点名要的图标记录里已经有，它会重新画一遍，替换掉旧的。

## 和之前画过的对上风格

新的一张图集，照着记录里最后一张来画。还没有记录时，它跟随 [`asset ui`](https://tyrbo.ai/game-ui-generator)（英文）画好的界面皮肤；连皮肤也没有，就只跟着游戏的画风走。

第一次运行 `asset ui` 时，本来就会带一张 64 个图标的图集，用的是皮肤的材质，计数器和操作按钮上的图标也在里面。所以之后的 `asset icons` 是接着那一套往下画，而不是另起一种风格。想先把界面做出来，可以看 [游戏UI生成](https://tyrbo.ai/zh-cn/youxi-ui-shengcheng)。

## 游戏只读一份记录

每个图标落成 `ui/ui-icon-<name>.png`，旁边是整张图 `ui-iconset-sheet.png` 和它的图集数据（后面再画的一张叫 `ui-iconset-2-sheet.png`）。

`ui/ui-icons.json` 记着你最近一次用的组和图集，并为每个图标写下名字、文件、尺寸和出自哪一张图，最多 1,024 个。游戏用 `./assets/ui/ui-icon-<name>.png` 载入其中一个。模型偶尔会留下空格子，这时切图按每个图标自己所在的格子来命名，名字不会错贴到隔壁的图上。

## 为什么不一个一个画

用 `asset image` 单独要一个图标，它就是一张独立的画：每次的比例、描边粗细、光线都不一样。放在同一张图集上，这些只决定一次，64 个全部适用；而且一次付费调用就能拿到整套，运行前会先报价。

想从某一个图标起头画一整张，`asset icons lantern "a brass lantern"` 会先画这盏灯，再围绕它把其余的格子填满。

## 大家常问的问题

### 可以只要一个图标吗？

可以把它放在第一个：`asset icons <name> "<words>"`。不过这次调用仍然会画满 64 个，其余的按合适的挑，因为整套风格一致正是靠这样来保证的。

### 图标会和游戏界面搭吗？

还没有图标时，图集跟随 `asset ui` 画好的皮肤，用它的材质和光线。之后每一张，都照着最后保留的那一张来画。

### 游戏怎么找到某个图标？

按名字找。`ui/ui-icons.json` 列出每个图标和它的文件，每个都从 `./assets/ui/ui-icon-<name>.png` 载入。

## 界面、画面、贴图和声音

- [AI游戏音效生成](https://tyrbo.ai/zh-cn/youxi-yinxiao-shengcheng)
- [AI游戏音乐生成](https://tyrbo.ai/zh-cn/ai-youxi-yinyue-shengcheng)
- [AI游戏背景图生成](https://tyrbo.ai/zh-cn/youxi-beijingtu-shengcheng)
- [AI游戏UI生成](https://tyrbo.ai/zh-cn/youxi-ui-shengcheng)

## 素材生成器的更多页面

- [素材生成器（英文）](https://tyrbo.ai/asset-generator)
- [文档（英文）](https://tyrbo.ai/asset-generator/docs)
- [AI精灵图生成](https://tyrbo.ai/zh-cn/ai-jinglingtu-shengcheng)
- [AI 3D模型生成](https://tyrbo.ai/zh-cn/ai-3d-moxing-shengcheng)
- [AI 2D角色动画](https://tyrbo.ai/zh-cn/ai-2d-juese-donghua)
- [像素风游戏素材生成](https://tyrbo.ai/zh-cn/xiangsu-youxi-sucai-shengcheng)

## 先装好它，再说出你要的画风。

[获取素材密钥](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)

先在 Tyrbo 应用里创建密钥，再运行 asset login。想先免费试，给任何命令加上 --mock 即可。

---

This is the Markdown version of https://tyrbo.ai/zh-cn/youxi-tubiao-shengcheng, from Tyrbo (The AI game engine). Cite and link the page itself. Every page: https://tyrbo.ai/llms.txt