# Every file a 2D game loads, in one look

> Make every file a 2D game loads with AI: sprites, sheets with atlases, tiling floors, an icon sheet, a UI skin and sounds, named so the code can load them.

- URL: https://tyrbo.ai/ai-2d-game-asset-generator
- Title: AI 2D Game Asset Generator: Every File a 2D Game Loads
- Language: English (en)
- Updated: 2026-12-04

A 2D game is a folder of files the code loads by name: sprites, sheets and their atlases, a floor that tiles, icons, an interface, a few sounds. Getting each one is half the work; getting each one in the right format, named the way the code expects, is the other half. The asset CLI writes all of them into `./public/assets/`, prints one JSON line naming what it wrote, and keeps the names predictable enough to write the loader first.

Send this to your agent

```
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.
```

[Get an asset key](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)[Read the docs](https://tyrbo.ai/asset-generator/docs)

## The commands

```
asset look meadow "bright cel-shaded fantasy village, warm afternoon sun" --view isometric
asset character hero "a young adventurer with a red scarf and a satchel" --clips idle,walk
asset texture path "a worn cobbled village path"
asset icons "village shop goods" --names apple,bread,lantern
asset ui "warm carved wood and brass" --vertical-phone
asset sfx door "a wooden door creaking open" --seconds 1
asset convert hero --to unity
```

## Made by the CLI, not drawn for this page

Real files the asset CLI wrote, each under the command that made it.

walk-up, 12 frames at 10 a second

### See prompt

`asset character hero "a young adventurer…" --view isometric --clips idle,walk`

![A tiling texture of a cobbled dirt path](https://tyrbo.ai/asset-gen/meadow/path.webp)

### See prompt

`asset texture path "…"`

![A sheet of 64 loot icons in the same look: potions, a key, a sword, a shield, coins, a scroll, gems and more](https://tyrbo.ai/asset-gen/crypt/icons.webp)

### See prompt

`asset icons "a dungeon crawler's loot" --names health-potion,mana-potion,key,sword,shield,coin,scroll,gem`

![The same interface on an upright phone: the play screen, a dialog and a panel](https://tyrbo.ai/asset-gen/meadow/ui-vertical-phone.webp)

### See prompt

`asset ui "warm carved wood and brass" --icons coin,heart`

![An iron-bound wooden treasure chest with a padlock](https://tyrbo.ai/asset-gen/meadow/chest.webp)

### See prompt

`asset image chest "…"`

## What each verb writes

- **A sprite**, `asset image`: a transparent `<name>.png` standing on its bottom edge.
- **A character**, `asset character`: `<name>.png`, its other facings, and `<name>-sheet.png` with its atlas and `<name>.anim.json`.
- **A floor or wall**, `asset texture`: an opaque `<name>.png` that tiles on every side.
- **Icons**, `asset icons`: a sheet of 64, each also cut as `ui/ui-icon-<name>.png` and listed in `ui/ui-icons.json`.
- **The interface**, `asset ui`: a skin of panels, buttons, meters and badges cut to stretch, laid out per screen in `ui.json`.
- **Sound**, `asset sfx`, `asset music` and `asset voice`: an `.mp3` each; `asset synth` a free `.wav`.

## Names the code can count on

A file is named after the word you gave it: `hero-sheet.png`, `path.png`, `door.mp3`. A piece you named with `--names` is `<piece>.png`. That lets your agent write the code that loads the hero before the hero exists, and run every command with `--mock` first: stand-in files under the real names, free and with no login, so the game boots with placeholders in the right places.

When a call fails it exits 1 with the reason on stderr, and nothing pretends to be the file you asked for.

## Atlases and anchors

The sheet's atlas is what keeps 2D animation from wobbling. Each frame is named `<clip>-<n>` and carries an anchor where the feet stand and a body share saying how tall the character is in that cell. Size by the body, place by the anchor, and a hero holding a long spear stands as tall as the same hero holding a dagger. The clip record adds the view, the facings and each clip's rate and loop.

## Into Godot or Unity

`asset convert <name> --to godot` or `--to unity` makes the engine's own files in `public/assets/<engine>/`, or a folder you name with `--into`, free: SpriteFrames for Godot, sliced sprites and an `.anim` a clip for Unity, an interface as the engine's own files too. The [Godot](https://tyrbo.ai/ai-sprites-for-godot) and [Unity](https://tyrbo.ai/ai-sprites-for-unity) pages walk through each.

## Questions people ask

### Does the CLI make tilesets with autotile rules?

No. `asset texture` makes a single surface that tiles on every side. Edges, corners and transitions between two terrains are not something it draws as a set.

### Where do the files go?

Into `./public/assets/` of the folder you run it in, or wherever `TYRBO_ASSET_OUT` points.

### What does a full set cost?

Each paid call is quoted before it runs and refused if your credits fall short; the figures under each output on this page are what that call cost. Rates are on [the pricing page](https://tyrbo.ai/pricing).

## Interface, screens, textures and sound

- [AI sprite generator](https://tyrbo.ai/ai-sprite-generator)
- [Game asset MCP server](https://tyrbo.ai/game-asset-mcp-server)
- [Game UI generator](https://tyrbo.ai/game-ui-generator)
- [Game title screen generator](https://tyrbo.ai/game-title-screen-generator)
- [Tileable texture generator](https://tyrbo.ai/tileable-texture-generator)
- [Game icon generator](https://tyrbo.ai/game-icon-generator)
- [Game sound effect generator](https://tyrbo.ai/game-sound-effect-generator)
- [AI game music generator](https://tyrbo.ai/ai-game-music-generator)
- [AI voice lines for games](https://tyrbo.ai/ai-voice-lines-for-games)
- [Game background generator](https://tyrbo.ai/game-background-generator)

## More from the asset generator

- [Asset generator](https://tyrbo.ai/asset-generator)
- [Docs](https://tyrbo.ai/asset-generator/docs)
- [Top-down RPG character sprite sheet](https://tyrbo.ai/top-down-rpg-character-sprite-sheet)
- [AI 3D model generator for games](https://tyrbo.ai/ai-3d-model-generator-for-games)
- [Image to sprite sheet](https://tyrbo.ai/image-to-sprite-sheet)
- [AI sprites for Godot](https://tyrbo.ai/ai-sprites-for-godot)
- [Game assets for Claude Code](https://tyrbo.ai/ai-game-assets-for-claude-code)
- [AI video generator for games](https://tyrbo.ai/ai-video-generator-for-games)
- [AI game art generator](https://tyrbo.ai/ai-game-art-generator)

## Install it, then ask for the look.

[Get an asset key](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)

Make a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.

---

This is the Markdown version of https://tyrbo.ai/ai-2d-game-asset-generator, from Tyrbo (The AI game engine). Cite and link the page itself. Every page: https://tyrbo.ai/llms.txt