A game background generator that paints in your game’s look
A background has one job: to make the characters in front of it look like they belong there. Painted in a different style, even a good one pulls the eye away. With the asset CLI, a backdrop is one more asset image call, asked after asset look has set the game’s palette, light and camera. So the bazaar’s teahouse, its inside and the dungeon under it all come out in the same hand as the hero standing in them.
The commands
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"Made by the CLI, not drawn for this page
Real files the asset CLI wrote, each under the command that made it.

See prompt
asset image teahouse-out "a backdrop: the outside of a small teahouse in the bazaar, its painted door and awning, no people"
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
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"
See prompt
asset look bazaar "cel-shaded desert bazaar, bold outlines, flat bright colours" --view isometricStart from the look, then ask the scene
asset look draws one picture of the game in play and keeps its style, camera and light in look.json. Every picture after it is asked with that record. A backdrop asked later therefore shares the outline weight, the colours and the angle of the look's scene without you repeating them.
Say "a backdrop" in the words, then what is in it and what is not. "Empty, no people" matters: a background with a figure painted into it fights the real character standing on top.
Rooms that match each other
A building usually needs two pictures: its outside, where the player walks up to it, and its inside, after the door. Ask the outside first, then pass it to the inside with --ref and say "this same" in the words. The inside keeps the outside's materials and colours, so walking in feels like the same place.
When a whole area wants a different style, say a cold cave under a sunny town, ask a second look beside the first with --beside, then ask that area's pictures with --look <name>. The town's look stays the default for everything else.
Backdrops, floors and what sits on them
A painted backdrop suits a fixed screen: a shop, a dialogue scene, a single-room puzzle, a dungeon chamber seen from one angle. A level the camera scrolls across is usually built from a floor that tiles instead, which the tileable texture page covers, with props placed on it by asset image.
Every picture the CLI writes is checked against the look's scene, and one that clashes is flagged with what to change. A prop or a figure also gets its height in hero heights, so the game can place a crate at the right size on a backdrop without guessing.
Questions people ask
Is a background transparent?
An asset image picture is written as a transparent .png standing on its bottom edge. A backdrop that fills its frame simply has no empty pixels to show through.
Can I start from my own concept art?
Yes. --of <picture> draws what the words name as your picture draws it, its design kept, and asset look --of sets the whole game’s style from a concept sheet.
What if I ask for a background before any look?
With no look yet, the first picture becomes the look, so the next ones follow it. Asking asset look first gives you a say in the style before anything else is drawn.
Install it, then ask for the look.
Get an asset keyMake a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.