Tyrbo 素材生成器(英文) 推广联盟 制作你的游戏

AI游戏背景图生成:照着你游戏的画风来画

背景只有一个任务:让站在前面的角色看起来本来就属于那里。换一种画风,哪怕画得再好,也会把玩家的视线拉走。

在 asset 命令行里,背景图就是再多一次 asset image 调用,在 asset look 定好游戏的色板、光线和镜头之后再要。所以集市里的茶馆、茶馆的里面、它底下的地牢,和站在其中的主角都像出自同一只手。

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.

要运行的命令

asset look bazaar "cel-shaded desert bazaar, bold outlines, flat bright colours" --view isometric
asset image teahouse-out "a backdrop: the outside of a small teahouse in the bazaar, its painted door and awning, no people"
asset image teahouse-in "a backdrop: the inside of this same teahouse, its rugs, lanterns, brass samovar and low tables, empty, no people" --ref public/assets/teahouse-out.png
asset image room "a small square dungeon room seen from above at a slant, a worn flagstone floor, a doorway in the back wall, empty"
asset texture sand "pale wind-rippled desert sand"

由 CLI 生成,不是为这个页面画的

下面都是 asset CLI 真正写出的文件,每个文件上方是生成它的那条命令。

A cel-shaded teahouse from outside: a painted blue door, a red awning, brass lanterns and potted palms
See prompt
asset image teahouse-out "a backdrop: the outside of a small teahouse in the bazaar, its painted door and awning, no people"
The same teahouse inside, empty: rugs, cushions, low tables, lanterns and a brass samovar
See prompt
asset image teahouse-in "a backdrop: the inside of this same teahouse, its rugs, lanterns, brass samovar and low tables, empty, no people" --ref out/teahouse-out.png
The knight walking right, down, left and up round a small torchlit dungeon room among a table, candles, a chest, a barrel and bones, brighter near each flame and darker away from them, then striking and spinning, under a HUD of health and mana bars, coins, keys and a hotbar, the torches and candles flickering
See prompt
asset image room "a small square dungeon room seen from above at a slant, filling the whole picture: the back wall of big stone blocks with its face showing, short side walls, a worn flagstone floor, a doorway in the back wall, empty, no characters, no props, no torches"
An isometric cel-shaded desert bazaar: awnings, a camel, a fountain and stalls
See prompt
asset look bazaar "cel-shaded desert bazaar, bold outlines, flat bright colours" --view isometric

先定画风,再要场景

asset look 画一张游戏正在玩的画面,把它的风格、镜头和光线存进 look.json。之后的每一张图都带着这份记录去要。所以后来要的背景,自然和那张画面有一样的描边粗细、颜色和角度,不用你再说一遍。

描述里先写“a backdrop”(一张背景),再写里面有什么、没有什么。“空的,没有人”这一句很要紧:背景里画进了一个人物,就会和真正站在上面的角色打架。

彼此对得上的房间

一栋房子通常要两张图:外面,玩家走过去的地方;里面,进门之后。先要外面,再用 --ref 把它传给里面那张,描述里写“this same”(同一栋)。里面那张会沿用外面的材质和颜色,走进门还是同一个地方的感觉。

如果某整片区域要另一种风格,比如阳光小镇底下的一座阴冷洞穴,就用 --beside 在第一个画风旁边再要一个,然后用 --look <name> 去要那片区域的图。其他所有东西仍然默认用小镇的画风。

背景、地面和放在上面的东西

画好的背景适合固定画面:一家店铺、一段对话场景、单个房间的解谜、从一个角度看的地牢房间。镜头会滚动的关卡,通常改用能平铺的地面来搭,可平铺纹理(英文)那一页讲的就是这个,再用 asset image 把道具摆上去。

命令行写出的每一张图,都会和画风那张画面比对,风格冲突的会被标出来,并说明要改哪里。道具或人物还会得到一个以主角身高为单位的高度,游戏就能把一只箱子按正确的大小摆到背景上,不用猜。

大家常问的问题

背景是透明的吗?

asset image 的图写成透明的 .png,立在自己的底边上。一张铺满画面的背景,只是没有空的像素可以透出去而已。

能从我自己的概念图开始吗?

可以。--of <picture> 按你的图画出描述里要的东西,保留它的设计;asset look --of 则用一张概念设定图来定整个游戏的风格。

还没定画风就要背景会怎样?

还没有画风时,第一张图就成了画风,后面的都跟着它。先运行 asset look,你就能在画任何东西之前先对风格说上话。

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

获取素材密钥

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