# A knight, his sword and a sprite sheet, asked for by Roo Code

> Teach Roo Code to make 3D game characters and the items they hold: rules in .roo, the asset tool over MCP or execute_command, and a sprite sheet rendered free.

- URL: https://tyrbo.ai/ai-game-assets-for-roo-code
- Title: AI Game Assets for Roo Code: Knights and Swords
- Language: English (en)
- Updated: 2026-11-26

Roo Code runs commands through its `execute_command` tool and calls MCP servers listed globally or in the project’s `.roo/mcp.json`, where a project entry wins over a global one of the same name. That makes the asset generator easy to give it. This guide walks a knight from words to game: an isometric village look, a rigged model made empty handed, a sword made on its own and put in his grip, and his clips drawn into a 2D sheet.

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)

## Set it up in Roo Code

1. **Install the CLI** Install the asset command (Node 20.11 or later). `npm install -g @tyrbo/asset`
2. **Add the MCP server to Roo Code** Put the server in .roo/mcp.json in the project, or the global mcp_settings.json (Edit Global MCP), then reload the agent so it starts it. `{ "mcpServers": { "tyrbo-asset": { "command": "npx", "args": [ "-y", "@tyrbo/asset", "mcp" ] } } }`
3. **Try it free** In an empty scratch folder, a mock call checks the setup with no key: it writes stand-in files and spends nothing. `asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mock`
4. **Log in in your own terminal** Make an asset key in the Tyrbo app (Settings, Asset gen) and paste it into asset login yourself. The agent never asks for the key and never runs the login. `asset login`

Roo Code’s own docs, read November 25, 2026:

- [https://roocodeinc.github.io/Roo-Code/features/mcp/using-mcp-in-roo](https://roocodeinc.github.io/Roo-Code/features/mcp/using-mcp-in-roo)
- [https://roocodeinc.github.io/Roo-Code/advanced-usage/available-tools/execute-command](https://roocodeinc.github.io/Roo-Code/advanced-usage/available-tools/execute-command)

## The commands

```
asset look meadow "bright cel-shaded fantasy village, warm afternoon light" --view isometric
asset mesh knight "a knight in steel plate with a blue tabard" --rig biped
asset mesh sword "a plain steel longsword with a leather grip" --held
asset attach knight sword
asset render2d knight --view isometric --clips idle,walk
```

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

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

walk, 16 frames at 12 a second

### See prompt

`asset render2d knight`

![An isometric cel-shaded meadow village: cottages, a well, a stone bridge over a stream, a hero and a dog on the path](https://tyrbo.ai/asset-gen/meadow/meadow.webp)

### See prompt

`asset look meadow "bright cel-shaded fantasy…" --view isometric`

![The knight’s 3D model from four sides](https://tyrbo.ai/asset-gen/meadow/knight.turntable.webp)

### See prompt

`asset mesh knight "…" --rig biped`

![The sword’s 3D model from four sides](https://tyrbo.ai/asset-gen/meadow/sword.turntable.webp)

### See prompt

`asset mesh sword "…" --held`

![Key frames of the rigged knight’s clips with the sword in its right hand](https://tyrbo.ai/asset-gen/meadow/knight-sword.webp)

### See prompt

`asset attach knight sword`

## Rules Roo reads every time

Roo Code loads project rules from the `.roo` folder, and can keep extra rules for a single mode. Put the agent block from the [docs](https://tyrbo.ai/asset-generator/docs) in the project’s rules so every mode knows the order: look, then characters, models and the interface, the title screen at the end, `asset --help` for flags. If you keep a mode just for art, its own rules can add your habits, such as always trying a call with `--mock` first.

## Why the sword is a separate call

A character is sculpted with empty hands. What it carries is made alone with `asset mesh ... --held`, which reads where the grip is, and `asset attach` puts it rigidly on the hand joint with clips made for it. The knight can then swap a sword for an axe later without being sculpted again. `knight-sword.png` shows him holding it, and both turntables let Roo check each piece before it moves on.

## From 3D to a 2D sheet, free

Plenty of games want flat sprites. `asset render2d` plays the rigged knight through its clips and draws each frame from the game’s camera, cel lit and outlined, onto `knight-sheet.png` with its atlas and `knight.anim.json`. That costs nothing, so Roo can try another set of clips as often as it likes.

Each answer is one JSON line naming the files. A refusal prints why on stderr and exits 1. Paid calls, the two meshes here, are quoted before they run and refused when your credits cannot pay; an ask repeated later is answered from the cache at no cost. Approve those two by hand, and let `asset spend` confirm the total afterwards.

## Questions people ask

### Where should the server go in Roo Code?

In `.roo/mcp.json` to keep it with the project, or the global settings for every project. If both name it, the project one is used.

### Can I keep using execute_command instead?

Yes. Roo can run `asset` in its terminal with the same lines, and the result is the same JSON line and the same files.

### Do I pay again to change the knight’s weapon?

Only for the new item’s mesh. Attaching it and rendering a fresh sheet are free, and the knight himself stays as he was.

## For your coding agent

- [Game assets for Claude Code](https://tyrbo.ai/ai-game-assets-for-claude-code)
- [Game assets for Cursor](https://tyrbo.ai/ai-game-assets-for-cursor)
- [Game assets for Codex](https://tyrbo.ai/ai-game-assets-for-codex)
- [Game assets for Gemini CLI](https://tyrbo.ai/ai-game-assets-for-gemini-cli)
- [Game assets for Cline](https://tyrbo.ai/ai-game-assets-for-cline)
- [Game assets for Kilo Code](https://tyrbo.ai/ai-game-assets-for-kilo-code)
- [Game assets for OpenCode](https://tyrbo.ai/ai-game-assets-for-opencode)
- [Game assets for Windsurf](https://tyrbo.ai/ai-game-assets-for-windsurf)
- [Game assets for GitHub Copilot](https://tyrbo.ai/ai-game-assets-for-github-copilot)
- [Game assets for Zed](https://tyrbo.ai/ai-game-assets-for-zed)
- [Game assets for Aider](https://tyrbo.ai/ai-game-assets-for-aider)
- [Game assets with Ollama](https://tyrbo.ai/ai-game-assets-with-ollama)

## 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)
- [Auto-rig a 3D model for games](https://tyrbo.ai/auto-rig-3d-model-for-games)
- [Game UI generator](https://tyrbo.ai/game-ui-generator)
- [AI sprites for Godot](https://tyrbo.ai/ai-sprites-for-godot)
- [Pixel art asset generator](https://tyrbo.ai/pixel-art-asset-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-game-assets-for-roo-code, from Tyrbo (The AI game engine). Cite and link the page itself. Every page: https://tyrbo.ai/llms.txt